|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InFile
This class holds an input file from which tokens can be read.
| 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. |
| Method Detail |
|---|
void close()
boolean isEof()
throws HelpingException
true iff no further token can be read.
HelpingException - in case of an errorboolean isFileStream()
true if this stream reads from a fileboolean isOpen()
boolean isStandardStream()
Tokens read(TokenFactory factory,
Tokenizer tokenizer)
throws HelpingException
factory - the factory to request new tokens fromtokenizer - the tokenizer to use
null in case of eof
HelpingException - in case of an error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||