class DefiniteLengthInputStream extends LimitedInputStream
| Modifier and Type | Field and Description |
|---|---|
private int |
_length |
_in| Constructor and Description |
|---|
DefiniteLengthInputStream(java.io.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, setParentEofDetectDefiniteLengthInputStream(java.io.InputStream in,
int length)
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionbyte[] toByteArray()
throws java.io.IOException
java.io.IOExceptionCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.