public class TransformationCatalogTextScanner
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.io.LineNumberReader |
mInputReader
Stores the stream from which we are currently scanning.
|
private int |
mLookAhead
Captures the look-ahead character.
|
private Token |
mPreviousToken
Captures the previous token.
|
| Constructor and Description |
|---|
TransformationCatalogTextScanner(java.io.Reader reader)
Starts to scan the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLineNumber()
Obtains the current line number in the input stream from the outside.
|
boolean |
hasMoreTokens()
Checks for the availability of more input.
|
Token |
nextToken()
Obtains the next token from the input stream.
|
private void |
skipWhitespace()
Skips any white space and comments in the input.
|
private java.io.LineNumberReader mInputReader
private int mLookAhead
private Token mPreviousToken
public TransformationCatalogTextScanner(java.io.Reader reader)
throws java.io.IOException
reader - the reader stream from which we are reading the site catalog.java.io.IOExceptionpublic int getLineNumber()
private void skipWhitespace()
throws java.io.IOException
java.io.IOExceptionpublic boolean hasMoreTokens()
throws java.io.IOException
java.io.IOExceptionpublic Token nextToken() throws java.io.IOException, ScannerException
java.io.IOException - if something went wrong while readingjava.lang.Exception - if a lexical error was encountered.ScannerException