public final class PeekReader extends Reader
BufferingWriter
,
PeekInputStream
Modifier and Type | Field and Description |
---|---|
static int |
INIT_COL |
static int |
INIT_LINE |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
eof() |
long |
getColNum() |
long |
getLineNum() |
long |
getPosition() |
static PeekReader |
make(CharStream r) |
static PeekReader |
make(Reader r) |
static PeekReader |
make(Reader r,
int bufferSize) |
static PeekReader |
makeASCII(InputStream in)
Make PeekReader where the input is ASCII
|
static PeekReader |
makeUTF8(InputStream in)
Make PeekReader where the input is UTF8
|
static PeekReader |
open(String filename) |
int |
peekChar() |
void |
pushbackChar(int ch)
push back a character : does not alter underlying position, line or column counts
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
int |
readChar() |
static PeekReader |
readString(String string) |
public static final int INIT_LINE
public static final int INIT_COL
public static PeekReader make(Reader r)
public static PeekReader make(Reader r, int bufferSize)
public static PeekReader makeUTF8(InputStream in)
public static PeekReader makeASCII(InputStream in)
public static PeekReader make(CharStream r)
public static PeekReader readString(String string)
public static PeekReader open(String filename)
public long getLineNum()
public long getColNum()
public long getPosition()
public final int peekChar()
public final int readChar()
public final void pushbackChar(int ch)
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public final int read() throws IOException
read
in class Reader
IOException
public final int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
public final boolean eof()
Licenced under the Apache License, Version 2.0