public final class PackageDescriptionFileScanner extends Scanner
| Modifier and Type | Field and Description |
|---|---|
private DescriptionBlock |
descriptionBlock
represents the Blocks in the Descriptionfile.
|
| Modifier | Constructor and Description |
|---|---|
private |
PackageDescriptionFileScanner(Buffer<AbstractSymbol> buffer)
create a PackageDescriptionFileScanner and sets the PackageDescriptionSelectionState as
initial state.
|
| Modifier and Type | Method and Description |
|---|---|
protected DescriptionBlock |
getDescriptionBlock() |
protected AbstractState |
getRestState(java.lang.Integer beginningRow,
java.lang.Integer beginningColumn) |
protected AbstractState |
getSelectionState() |
protected void |
handleRowEnd()
this method increase the RowCounter.
|
protected java.lang.Boolean |
isPackageDescriptionFileScanner() |
protected void |
setDescriptionBlock(DescriptionBlock descriptionBlock) |
protected PackageDescriptionFileScanner |
toPackageDescriptionFileScanner() |
static void |
toSymbolSequence(java.io.InputStream input,
java.lang.String dataPath,
Buffer<AbstractSymbol> buffer)
creates a scanner and starts him.
|
getColumnCounter, getRowCounter, skip, toSymbolSequenceprivate DescriptionBlock descriptionBlock
private PackageDescriptionFileScanner(Buffer<AbstractSymbol> buffer)
buffer - a buffer for the created Symbolspublic 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 symbolprotected DescriptionBlock getDescriptionBlock()
protected void setDescriptionBlock(DescriptionBlock descriptionBlock)
descriptionBlock - the descriptionBlock to setprotected PackageDescriptionFileScanner toPackageDescriptionFileScanner()
toPackageDescriptionFileScanner in class Scannerprotected void handleRowEnd()
ScannerhandleRowEnd in class Scannerprotected java.lang.Boolean isPackageDescriptionFileScanner()
isPackageDescriptionFileScanner in class Scanner