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
- Reader
readAheadLimit
- read ahead limit.IOException
- in case of a failure.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Reader
IOException
public void reset() throws IOException
reset
in class Reader
IOException
public void mark(int theReadAheadLimit) throws IOException
mark
in class Reader
IOException
public int read() throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class Reader
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.