Class ASN1InputStreamBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1InputStreamBC
- All Implemented Interfaces:
IASN1InputStream, Closeable, AutoCloseable
Wrapper class for
ASN1InputStream.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionASN1InputStreamBC(byte[] bytes) Creates new wrapper instance forASN1InputStream.ASN1InputStreamBC(InputStream stream) Creates new wrapper instance forASN1InputStream.ASN1InputStreamBC(org.bouncycastle.asn1.ASN1InputStream asn1InputStream) Creates new wrapper instance forASN1InputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Delegatesclosemethod call to the wrapped stream.booleanIndicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1InputStreamGets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.Calls actualreadObjectmethod for the wrapped ASN1InputStream object.toString()DelegatestoStringmethod call to the wrapped object.
-
Field Details
-
stream
private final org.bouncycastle.asn1.ASN1InputStream stream
-
-
Constructor Details
-
ASN1InputStreamBC
public ASN1InputStreamBC(org.bouncycastle.asn1.ASN1InputStream asn1InputStream) Creates new wrapper instance forASN1InputStream.- Parameters:
asn1InputStream-ASN1InputStreamto be wrapped
-
ASN1InputStreamBC
public ASN1InputStreamBC(byte[] bytes) Creates new wrapper instance forASN1InputStream.- Parameters:
bytes- byte array to createASN1InputStream
-
ASN1InputStreamBC
Creates new wrapper instance forASN1InputStream.- Parameters:
stream- InputStream to createASN1InputStream
-
-
Method Details
-
getASN1InputStream
public org.bouncycastle.asn1.ASN1InputStream getASN1InputStream()Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1InputStream.
-
readObject
Calls actualreadObjectmethod for the wrapped ASN1InputStream object.- Specified by:
readObjectin interfaceIASN1InputStream- Returns:
IASN1Primitivewrapped ASN1Primitive object.- Throws:
IOException- if an I/O error occurs.
-
close
Delegatesclosemethod call to the wrapped stream.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIASN1InputStream- Throws:
IOException
-
equals
-
hashCode
-
toString
-