Package org.gudy.bouncycastle.asn1
Class DefiniteLengthInputStream
java.lang.Object
java.io.InputStream
org.gudy.bouncycastle.asn1.LimitedInputStream
org.gudy.bouncycastle.asn1.DefiniteLengthInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
FieldsFields inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
_in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
getUnderlyingStream, setParentEofDetect
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
_length
private int _length
-
-
Constructor Details
-
DefiniteLengthInputStream
DefiniteLengthInputStream(InputStream in, int length)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
toByteArray
- Throws:
IOException
-