|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qedeq.kernel.bo.parser.MementoTextInput
public class MementoTextInput
Remember TextInput positions.
| Constructor Summary | |
|---|---|
MementoTextInput(TextInput input)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clearMark()
Forget last remembered position. |
int |
getChar()
Reads a single character and does not change the reading position. |
int |
getColumn()
Returns the current column number. |
java.lang.String |
getLine()
Returns the current line. |
long |
getPosition()
Get byte position. |
int |
getRewindStackSize()
Get rewind stack size. |
int |
getRow()
Returns the current line number. |
boolean |
isEmpty()
Are there still any characters to read? |
void |
markPosition()
Remember current position. |
int |
read()
Reads a single character and increments the reading position by one. |
int |
readInverse()
Decrements the reading position by one and reads a single character. |
long |
rewindPosition()
Rewind to previous marked position. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MementoTextInput(TextInput input)
input - Input source to parse.| Method Detail |
|---|
public void markPosition()
public long rewindPosition()
public void clearMark()
public long getPosition()
public int getChar()
-1 is returnedpublic int read()
-1 is returnedpublic final boolean isEmpty()
public int getRewindStackSize()
public int getColumn()
public int getRow()
public java.lang.String getLine()
public int readInverse()
-1 is returned.
Otherwise a cast to char gives the character read.
-1 is returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||