Package org.gudy.bouncycastle.asn1
Class IndefiniteLengthInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.gudy.bouncycastle.asn1.LimitedInputStream
-
- org.gudy.bouncycastle.asn1.IndefiniteLengthInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
class IndefiniteLengthInputStream extends LimitedInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private int
_b1
private int
_b2
private boolean
_eofOn00
private boolean
_eofReached
-
Fields inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
_in
-
-
Constructor Summary
Constructors Constructor Description IndefiniteLengthInputStream(java.io.InputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
checkForEof()
int
read()
int
read(byte[] b, int off, int len)
(package private) void
setEofOn00(boolean eofOn00)
-
Methods inherited from class org.gudy.bouncycastle.asn1.LimitedInputStream
getUnderlyingStream, setParentEofDetect
-
-
-
-
Method Detail
-
setEofOn00
void setEofOn00(boolean eofOn00)
-
checkForEof
boolean checkForEof()
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-