|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.StreamTokenizer | +--ants.util.LineListTokenizer
File reading utility. Returns each useful line of text as an array of strings, one string per "word." Comments are ignored and quoted strings are handled (the quotes are stripped off and the quoted string is returned as a single word).
Max of 256 words per line (see MAXLIST).
Fields inherited from class java.io.StreamTokenizer |
nval,
sval,
TT_EOF,
TT_EOL,
TT_NUMBER,
TT_WORD,
ttype |
Constructor Summary | |
LineListTokenizer(java.io.Reader input)
Create a new LineListTokenizer from the given readable Stream. |
|
LineListTokenizer(java.lang.String file)
Create a new LineListTokenizer for the given file. |
Method Summary | |
java.lang.String[] |
list()
Parse the next non-empty line into an array of strings. |
Methods inherited from class java.io.StreamTokenizer |
commentChar,
eolIsSignificant,
lineno,
lowerCaseMode,
nextToken,
ordinaryChar,
ordinaryChars,
parseNumbers,
pushBack,
quoteChar,
resetSyntax,
slashSlashComments,
slashStarComments,
toString,
whitespaceChars,
wordChars |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public LineListTokenizer(java.lang.String file) throws java.io.FileNotFoundException
file
- the file to use as input.public LineListTokenizer(java.io.Reader input)
input
- the Reader to stream input from.Method Detail |
public java.lang.String[] list() throws LineListException
XXX rename to nextLine()
|
ANTS v2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |