|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.util.CharScanner
public class CharScanner
A scanner for simple delimiter based parsing.
Constructor Summary | |
---|---|
CharScanner(java.lang.String delimiters)
Creates a compiled character scanner. |
Method Summary | |
---|---|
char |
scan(CharCursor cursor)
Scans characters from a cursor, until reaching the delimiter |
char |
scan(CharCursor cursor,
CharBuffer buf)
Scans characters from a cursor, filling a char buffer. |
char |
skip(CharCursor cursor)
Skips characters from the cursor until one matches a delimiter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharScanner(java.lang.String delimiters)
delimiters
- string containing the delimitersMethod Detail |
---|
public char skip(CharCursor cursor)
cursor
- CharCursor to scan.
public char scan(CharCursor cursor, CharBuffer buf)
cursor
- CharCursor to scan.buf
- CharBuffer to fill.
public char scan(CharCursor cursor)
cursor
- CharCursor to scan.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |