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
- All Implemented Interfaces:
- Closeable
class DefiniteLengthInputStream
- extends LimitedInputStream
Method Summary |
int |
read()
|
int |
read(byte[] buf,
int off,
int len)
|
(package private) byte[] |
toByteArray()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_length
private int _length
DefiniteLengthInputStream
DefiniteLengthInputStream(InputStream in,
int length)
read
public int read()
throws IOException
- Specified by:
read
in class InputStream
- Throws:
IOException
read
public int read(byte[] buf,
int off,
int len)
throws IOException
- Overrides:
read
in class InputStream
- Throws:
IOException
toByteArray
byte[] toByteArray()
throws IOException
- Throws:
IOException