|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.yaml.snakeyaml.reader.StreamReader
public class StreamReader
Reader: checks if code points are in allowed range, adds '\0' to the end.
Constructor Summary | |
---|---|
StreamReader(Reader reader)
|
|
StreamReader(String stream)
|
Method Summary | |
---|---|
void |
forward()
|
void |
forward(int length)
read the next length characters and move the pointer. |
int |
getColumn()
|
Charset |
getEncoding()
|
int |
getIndex()
|
int |
getLine()
|
Mark |
getMark()
|
static boolean |
isPrintable(int c)
|
static boolean |
isPrintable(String data)
|
int |
peek()
|
int |
peek(int index)
Peek the next index-th code point |
String |
prefix(int length)
peek the next length code points |
String |
prefixForward(int length)
prefix(length) immediately followed by forward(length) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StreamReader(String stream)
public StreamReader(Reader reader)
Method Detail |
---|
public static boolean isPrintable(String data)
public static boolean isPrintable(int c)
public Mark getMark()
public void forward()
public void forward(int length)
length
- amount of characters to move forwardpublic int peek()
public int peek(int index)
index
- to peek
public String prefix(int length)
length
- amount of the characters to peek
public String prefixForward(int length)
length
- amount of characters to get
public int getColumn()
public Charset getEncoding()
public int getIndex()
public int getLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |