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:
java.io.Closeable
,java.lang.AutoCloseable
class DefiniteLengthInputStream extends LimitedInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private int
_length
-
Fields inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
_in
-
-
Constructor Summary
Constructors Constructor Description DefiniteLengthInputStream(java.io.InputStream in, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
read()
int
read(byte[] buf, int off, int len)
(package private) byte[]
toByteArray()
-
Methods inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
getUnderlyingStream, setParentEofDetect
-
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] buf, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
toByteArray
byte[] toByteArray() throws java.io.IOException
- Throws:
java.io.IOException
-
-