public interface IScanner
ScannerExceptions when
unrecognized characters are encountered in the input.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close scanner and any underlying readers.
|
IToken |
getNextToken()
Returns the next token.
|
void |
reset(java.io.Reader reader,
java.lang.String originId)
Reset the scanner.
|
IToken getNextToken() throws java.io.IOException, ScannerException
ETokenType.EOF when current file
is entirely scanned.ScannerException - Thrown upon scanner problems.java.io.IOException - Thrown if the scanner encounters problem during file I/O.void reset(java.io.Reader reader, java.lang.String originId)
reader - new input reader.originId - originIdvoid close() throws java.io.IOException
java.io.IOException - in case of an IO exception