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, skip
protected 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 FilterReader
IOException
public int read(char[] cbuf) throws IOException
read
in class Reader
IOException
public int read(char[] cbuf, int off, int len) throws IOException
read
in class FilterReader
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterReader
IOException