public class ContentReader extends FilterReader
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
closed |
protected long |
length |
protected long |
lengthRead |
in| Constructor and Description |
|---|
ContentReader(Reader reader,
long length) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getLength() |
int |
read() |
int |
read(char[] cbuf) |
int |
read(char[] cbuf,
int off,
int len) |
mark, markSupported, ready, reset, skipprotected long length
protected long lengthRead
protected boolean closed
public ContentReader(Reader reader, long length)
public long getLength()
public int read()
throws IOException
read in class FilterReaderIOExceptionpublic int read(char[] cbuf)
throws IOException
read in class ReaderIOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws IOException
read in class FilterReaderIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterReaderIOException