public class StreamReader extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
NON_PRINTABLE |
Constructor and Description |
---|
StreamReader(Reader reader) |
StreamReader(String stream) |
Modifier and Type | Method and Description |
---|---|
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(char c) |
char |
peek() |
char |
peek(int index)
Peek the next index-th character
|
String |
prefix(int length)
peek the next length characters
|
String |
prefixForward(int length)
prefix(length) immediately followed by forward(length)
|
public static final Pattern NON_PRINTABLE
public StreamReader(String stream)
public StreamReader(Reader reader)
public static boolean isPrintable(char c)
public Mark getMark()
public void forward()
public void forward(int length)
length
- public char peek()
public char peek(int index)
index
- public String prefix(int length)
length
- public String prefixForward(int length)
public int getColumn()
public Charset getEncoding()
public int getIndex()
public int getLine()
Copyright © 2008–2015. All rights reserved.