public abstract class CharSource extends Object
| Constructor and Description |
|---|
CharSource() |
| Modifier and Type | Method and Description |
|---|---|
String |
dump() |
Bookmark |
getBookmark() |
int |
getPos() |
boolean |
isEof() |
abstract boolean |
isEof(int i) |
String |
peak(int len) |
char |
peek() |
abstract char |
peek(int i) |
abstract char |
read() |
String |
read(int length) |
boolean |
read(int length,
StringBuilder target) |
String |
readQuotedString(char quote) |
abstract boolean |
readUntil(int length,
Predicator<CharSource> predicator,
StringBuilder target)
Skip chars until eof or length or predicator condition matches
If target is set, the skipped the chars will be saved in the target
|
boolean |
readUntil(int length,
String terminator,
boolean include,
StringBuilder target) |
boolean |
readUntil(Predicator<CharSource> predicator,
StringBuilder target) |
String |
readUntil(String terminator) |
boolean |
readUntil(String terminator,
boolean include,
StringBuilder target) |
boolean |
readUntil(String terminator,
StringBuilder target) |
boolean |
readUntilMatch(int length,
String str,
boolean skipStr,
StringBuilder target) |
boolean |
readUntilMatch(String str,
boolean skipStr,
StringBuilder target) |
boolean |
skip(int length) |
boolean |
skipSpaces() |
boolean |
skipUntil(Predicator<CharSource> predicator) |
boolean |
skipUntil(String terminator) |
boolean |
skipUntil(String terminator,
boolean include) |
boolean |
skipUntilMatch(String str,
boolean skipStr) |
boolean |
startsWidth(String str) |
public abstract char read()
public abstract char peek(int i)
public abstract boolean isEof(int i)
public Bookmark getBookmark()
public int getPos()
public boolean isEof()
public char peek()
public abstract boolean readUntil(int length,
Predicator<CharSource> predicator,
StringBuilder target)
public boolean readUntil(Predicator<CharSource> predicator, StringBuilder target)
public boolean skipUntil(Predicator<CharSource> predicator)
public boolean readUntil(int length,
String terminator,
boolean include,
StringBuilder target)
public boolean readUntil(String terminator, StringBuilder target)
public boolean readUntil(String terminator, boolean include, StringBuilder target)
public boolean skipUntil(String terminator, boolean include)
public boolean skipUntil(String terminator)
public boolean skipSpaces()
public boolean read(int length,
StringBuilder target)
public String read(int length)
public boolean skip(int length)
public boolean readUntilMatch(int length,
String str,
boolean skipStr,
StringBuilder target)
public boolean readUntilMatch(String str, boolean skipStr, StringBuilder target)
public boolean skipUntilMatch(String str, boolean skipStr)
public String peak(int len)
public boolean startsWidth(String str)
public String readQuotedString(char quote)
public String dump()
Copyright © 2019. All rights reserved.