public final class PeekInputStream extends InputStream
PeekReader
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() |
InputStreamBuffered |
getInput() |
long |
getLineNum() |
long |
getPosition() |
static PeekInputStream |
make(InputStream inputStream) |
static PeekInputStream |
make(InputStream inputStream,
int bufferSize) |
static PeekInputStream |
open(String filename) |
int |
peekByte() |
void |
pushbackByte(int b)
push back a byte : does not alter underlying position, line or column counts
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
int |
readByte() |
available, mark, markSupported, read, reset, skip
public static final int INIT_LINE
public static final int INIT_COL
public static PeekInputStream make(InputStream inputStream)
public static PeekInputStream make(InputStream inputStream, int bufferSize)
public static PeekInputStream open(String filename)
public final InputStreamBuffered getInput()
public long getLineNum()
public long getColNum()
public long getPosition()
public final int peekByte()
public final int readByte()
public final void pushbackByte(int b)
public final void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public final int read() throws IOException
read
in class InputStream
IOException
public final int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
IOException
public final boolean eof()
Licenced under the Apache License, Version 2.0