public final class AssignmentFileScanner extends Scanner
| Modifier | Constructor and Description |
|---|---|
private |
AssignmentFileScanner(Buffer<AbstractSymbol> buffer)
This is the constructor for a new AssignmentFileScanner.
|
| Modifier and Type | Method and Description |
|---|---|
protected AbstractState |
getRestState(java.lang.Integer beginningRow,
java.lang.Integer beginningColumn) |
protected AbstractState |
getSelectionState() |
static void |
toSymbolSequence(java.io.InputStream input,
java.lang.String dataPath,
Buffer<AbstractSymbol> buffer)
creates a scanner and starts it.
|
getColumnCounter, getRowCounter, handleRowEnd, isPackageDescriptionFileScanner, skip, toPackageDescriptionFileScanner, toSymbolSequenceprivate AssignmentFileScanner(Buffer<AbstractSymbol> buffer)
buffer - is a Buffer for the Symbols.public static void toSymbolSequence(java.io.InputStream input,
java.lang.String dataPath,
Buffer<AbstractSymbol> buffer)
throws ScannerException,
java.lang.InterruptedException,
java.io.IOException
input - is the input stream.dataPath - is the path of the file.buffer - if the buffer for the symbols.java.io.IOException - from the Input Stream.java.lang.InterruptedException - from the buffer.ScannerException - if there is any problem during the scan.protected AbstractState getSelectionState()
getSelectionState in class Scannerprotected AbstractState getRestState(java.lang.Integer beginningRow, java.lang.Integer beginningColumn)
getRestState in class ScannerbeginningRow - is the beginning row of the symbolbeginningColumn - is the beginning column of the symbol