public class CharScanner
extends java.lang.Object
Constructor and Description |
---|
CharScanner(java.lang.String delimiters)
Creates a compiled character scanner.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CharScanner(java.lang.String delimiters)
delimiters
- string containing the delimiterspublic 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.