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 - ReaderreadAheadLimit - read ahead limit.java.io.IOException - in case of a failure.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionpublic void mark(int theReadAheadLimit)
throws java.io.IOException
mark in class java.io.Readerjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOException