public class ContentInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed |
protected long |
length |
protected long |
lengthRead |
in
Constructor and Description |
---|
ContentInputStream(InputStream stream,
long length) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getLength() |
int |
read() |
int |
read(byte[] bbuf) |
int |
read(byte[] bbuf,
int off,
int len) |
available, mark, markSupported, reset, skip
protected long length
protected long lengthRead
protected boolean closed
public ContentInputStream(InputStream stream, long length)
public long getLength()
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] bbuf) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] bbuf, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException