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, skipprotected 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 FilterInputStreamIOExceptionpublic int read(byte[] bbuf)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] bbuf,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOException