class DefiniteLengthInputStream extends LimitedInputStream
| Modifier and Type | Field and Description |
|---|---|
private int |
_length |
_in| Constructor and Description |
|---|
DefiniteLengthInputStream(InputStream in,
int length) |
| Modifier and Type | Method and Description |
|---|---|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
(package private) byte[] |
toByteArray() |
getUnderlyingStream, setParentEofDetectavailable, close, mark, markSupported, read, reset, skipprivate int _length
DefiniteLengthInputStream(InputStream in, int length)
public int read() throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf, int off, int len) throws IOException
read in class InputStreamIOExceptionbyte[] toByteArray() throws IOException
IOException