org.apache.commons.ssl.asn1
Class DefiniteLengthInputStream
java.lang.Object
java.io.InputStream
org.apache.commons.ssl.asn1.LimitedInputStream
org.apache.commons.ssl.asn1.DefiniteLengthInputStream
- class DefiniteLengthInputStream
- extends LimitedInputStream
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_length
private int _length
_in
protected final InputStream _in
DefiniteLengthInputStream
DefiniteLengthInputStream(InputStream in,
int length)
read
public int read()
throws IOException
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Throws:
IOException
toByteArray
byte[] toByteArray()
throws IOException
- Throws:
IOException
getUnderlyingStream
InputStream getUnderlyingStream()
setParentEofDetect
protected void setParentEofDetect(boolean on)