public class BoundedReader extends Reader
| Constructor and Description |
|---|
BoundedReader(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() |
public BoundedReader(Reader target, int readAheadLimit) throws IOException
target - ReaderreadAheadLimit - read ahead limit.IOException - in case of a failure.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ReaderIOExceptionpublic void reset()
throws IOException
reset in class ReaderIOExceptionpublic void mark(int theReadAheadLimit)
throws IOException
mark in class ReaderIOExceptionpublic int read()
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class ReaderIOExceptionCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.