|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A generic tokenizer interface
Method Summary | |
void |
close()
Closes the TokenStream |
void |
match(java.lang.String content)
Attempts to match the next token, throws TokenStreamException |
Token |
nextToken()
Returns the next Token from a TokenStream or null if the end of the stream has been reached. |
boolean |
nextTokenEquals(java.lang.String str)
Determines if the next token is the specified String |
void |
process(java.lang.String str)
Opens the TokenStream given a string to process |
Method Detail |
public void process(java.lang.String str) throws TokenStreamException
str
- The String to processpublic void close() throws TokenStreamException
public void match(java.lang.String content) throws TokenStreamException
content
- String to match next token againstpublic boolean nextTokenEquals(java.lang.String str) throws TokenStreamException
str
- The String to be compared againstpublic Token nextToken() throws TokenStreamException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |