|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpobs.scanner.PLineScanner
Remembers the position last scanned in line/column format. XXX: This class is currently not threadsafe
Field Summary | |
static byte |
CR
|
static byte |
CRLF
|
static byte |
LF
|
Constructor Summary | |
PLineScanner(PScanner scanner)
Sole constructor, takes another scanner. |
Method Summary | |
char |
charAt(long index)
Returns the character at the specified location. |
long |
getColumn()
Insert the method's description here. |
byte |
getEndOfLine()
Insert the method's description here. |
long |
getLine()
Insert the method's description here. |
int |
getTabSize()
Insert the method's description here. |
boolean |
isAbsoluteTab()
Insert the method's description here. |
long |
length()
Gives the length of this iterators' content. |
void |
parseUptoIndex(long newIndex)
Parses the scanner upto the specified index |
void |
reset()
Insert the method's description here. |
void |
setAbsoluteTab(boolean newAbsoluteTab)
Insert the method's description here. |
void |
setEndOfLine(byte newEndOfLine)
Insert the method's description here. |
void |
setTabSize(int newTabSize)
Insert the method's description here. |
java.lang.String |
substring(long beginIndex,
long endIndex)
Returns the part of the input from the beginning upto the ending index locations. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final byte CRLF
public static final byte CR
public static final byte LF
Constructor Detail |
public PLineScanner(PScanner scanner)
Method Detail |
public char charAt(long index) throws java.lang.IndexOutOfBoundsException
PScanner
charAt
in interface PScanner
index
- position of the character to return
java.lang.IndexOutOfBoundsException
- when the specified index is either less than zero or equal or
more than the lengthpublic long getColumn()
public byte getEndOfLine()
public long getLine()
public int getTabSize()
public boolean isAbsoluteTab()
public long length()
PScanner
length
in interface PScanner
public void parseUptoIndex(long newIndex)
public void reset()
public void setAbsoluteTab(boolean newAbsoluteTab)
newAbsoluteTab
- booleanpublic void setEndOfLine(byte newEndOfLine)
newEndOfLine
- bytepublic void setTabSize(int newTabSize)
newTabSize
- intpublic java.lang.String substring(long beginIndex, long endIndex)
PScanner
substring
in interface PScanner
beginIndex
- starting offset from which to extract the substringendIndex
- ending offset at which the substring ends
String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |