|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.file.InFile
This class holds an input file from which tokens can be read.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
InFile(TokenStream inStream,
boolean isStandard)
Creates a new object. |
Method Summary | |
void |
close()
Close the current stream. |
boolean |
isEof()
Checks whether this InFile is at end of file. |
boolean |
isFileStream()
|
boolean |
isOpen()
Check whether this InFile is currently opened for reading. |
boolean |
isStandardStream()
Getter for standardStream. |
Tokens |
read(TokenFactory factory,
Tokenizer tokenizer)
Read a line of characters into a tokens list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public InFile(TokenStream inStream, boolean isStandard)
inStream
- the token stream to read fromMethod Detail |
public void close()
public boolean isEof() throws InterpreterException
true
iff no further token can be read.
InterpreterException
- in case of an errorpublic boolean isFileStream()
TokenStream.isFileStream()
public boolean isOpen()
public boolean isStandardStream()
public Tokens read(TokenFactory factory, Tokenizer tokenizer) throws InterpreterException
factory
- the factory to request new tokens fromtokenizer
- the tokenizer to use
null
in case of eof
InterpreterException
- in case of an error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |