org.apache.commons.ssl.asn1
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, setParentEofDetect
available, close, mark, markSupported, read, reset, skip
private int _length
DefiniteLengthInputStream(InputStream in, int length)
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
IOException
byte[] toByteArray() throws IOException
IOException