|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.base.type.file.InputFile
public class InputFile
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 | |
|---|---|
InputFile(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()
Check if this stream is attached to a file. |
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 InputFile(TokenStream inStream,
boolean isStandard)
inStream - the token stream to read fromisStandard - the stream is the standard input stream| Method Detail |
|---|
public void close()
close in interface InFileInFile.close()
public boolean isEof()
throws NoHelpException
isEof in interface InFiletrue iff no further token can be read.
NoHelpExceptionInFile.isEof()public boolean isFileStream()
isFileStream in interface InFiletrue if this stream reads from a fileInFile.isFileStream()public boolean isOpen()
isOpen in interface InFileInFile.isOpen()public boolean isStandardStream()
isStandardStream in interface InFileInFile.isStandardStream()
public Tokens read(TokenFactory factory,
Tokenizer tokenizer)
throws NoHelpException
read in interface InFilefactory - the factory to request new tokens fromtokenizer - the tokenizer to use
null in case of eof
NoHelpExceptionInFile.read(org.extex.scanner.type.token.TokenFactory,
org.extex.scanner.api.Tokenizer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||