public class BoundedReader
extends java.io.Reader
Modifier and Type | Field and Description |
---|---|
(package private) int |
pos |
(package private) int |
readAheadLimit |
private java.io.Reader |
target |
Constructor and Description |
---|
BoundedReader(java.io.Reader target,
int readAheadLimit) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
mark(int theReadAheadLimit) |
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
void |
reset() |
private final java.io.Reader target
int pos
int readAheadLimit
public BoundedReader(java.io.Reader target, int readAheadLimit) throws java.io.IOException
target
- Reader
readAheadLimit
- read ahead limit.java.io.IOException
- in case of a failure.public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Reader
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.Reader
java.io.IOException
public void mark(int theReadAheadLimit) throws java.io.IOException
mark
in class java.io.Reader
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.Reader
java.io.IOException
public int read(char[] cbuf, int off, int len) throws java.io.IOException
read
in class java.io.Reader
java.io.IOException