public class ContentState extends AbstractState
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
collectedContent
represents the collected Signs.
|
| Constructor and Description |
|---|
ContentState(Scanner myScanner,
java.lang.Integer beginningColumn,
java.lang.Integer beginningRow)
creates the Pathstate for the PackageDesriptionFileScanner.
|
| Modifier and Type | Method and Description |
|---|---|
AbstractState |
action(java.lang.Character character,
Buffer<AbstractSymbol> currentResult,
java.lang.String dataPath)
This method represents the action which will be executed, if it reached.
|
protected void |
finish(Buffer<AbstractSymbol> currentResult,
java.lang.String dataPath)
Method, which will be call at the end of each row.
|
getBeginningColumn, getBeginningRow, getMyScannerprivate java.lang.String collectedContent
public ContentState(Scanner myScanner, java.lang.Integer beginningColumn, java.lang.Integer beginningRow)
myScanner - is the scanner, which owns the state.beginningColumn - is the first column of the symbol.beginningRow - is the first row of the symbol.public AbstractState action(java.lang.Character character, Buffer<AbstractSymbol> currentResult, java.lang.String dataPath) throws java.lang.InterruptedException
AbstractStateaction in class AbstractStatecharacter - is the used Character.currentResult - is the Buffer of symbols.dataPath - is the path to the dataStreamjava.lang.InterruptedException - for a Interruption in the methodprotected void finish(Buffer<AbstractSymbol> currentResult, java.lang.String dataPath) throws java.lang.InterruptedException
AbstractStatefinish in class AbstractStatecurrentResult - is the buffer of symbols.dataPath - is the path.java.lang.InterruptedException - from the Buffer.