net.jini.config
Class ConfigurationFile.PushbackStreamTokenizer

java.lang.Object
  extended by java.io.StreamTokenizer
      extended by net.jini.config.ConfigurationFile.PushbackStreamTokenizer
Enclosing class:
ConfigurationFile

private static class ConfigurationFile.PushbackStreamTokenizer
extends StreamTokenizer

Defines a StreamTokenizer that resets sval, nval, and lineno when the pushBack method is called.


Field Summary
private  boolean gotToken
           
private  boolean pushedBack
           
private  int savedLineno
           
private  double savedNval
           
private  String savedSval
           
private  int savedTtype
           
 
Fields inherited from class java.io.StreamTokenizer
nval, sval, TT_EOF, TT_EOL, TT_NUMBER, TT_WORD, ttype
 
Constructor Summary
ConfigurationFile.PushbackStreamTokenizer(Reader reader)
           
 
Method Summary
 int lineno()
           
 int nextToken()
           
 void pushBack()
           
 
Methods inherited from class java.io.StreamTokenizer
commentChar, eolIsSignificant, lowerCaseMode, ordinaryChar, ordinaryChars, parseNumbers, quoteChar, resetSyntax, slashSlashComments, slashStarComments, toString, whitespaceChars, wordChars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

gotToken

private boolean gotToken

pushedBack

private boolean pushedBack

savedNval

private double savedNval

savedSval

private String savedSval

savedTtype

private int savedTtype

savedLineno

private int savedLineno
Constructor Detail

ConfigurationFile.PushbackStreamTokenizer

ConfigurationFile.PushbackStreamTokenizer(Reader reader)
Method Detail

nextToken

public int nextToken()
              throws IOException
Overrides:
nextToken in class StreamTokenizer
Throws:
IOException

pushBack

public void pushBack()
Overrides:
pushBack in class StreamTokenizer

lineno

public int lineno()
Overrides:
lineno in class StreamTokenizer


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.