Package com.itextpdf.bouncycastle.asn1
Class ASN1InputStreamBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1InputStreamBC
- All Implemented Interfaces:
-
IASN1InputStream
,Closeable
,AutoCloseable
Wrapper class for
ASN1InputStream
.
-
Constructor Summary
ConstructorDescriptionASN1InputStreamBC
(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 TypeMethodDescriptionvoid
close()
Delegatesclose
method call to the wrapped stream.boolean
Indicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1InputStream
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.Calls actualreadObject
method for the wrapped ASN1InputStream object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
ASN1InputStreamBC
public ASN1InputStreamBC(org.bouncycastle.asn1.ASN1InputStream asn1InputStream) Creates new wrapper instance forASN1InputStream
.- Parameters:
-
asn1InputStream
-ASN1InputStream
to 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 actualreadObject
method for the wrapped ASN1InputStream object.- Specified by:
-
readObject
in interfaceIASN1InputStream
- Returns:
-
IASN1Primitive
wrapped ASN1Primitive object. - Throws:
-
IOException
- if an I/O error occurs.
-
close
Delegatesclose
method call to the wrapped stream.- Specified by:
-
close
in interfaceAutoCloseable
- Specified by:
-
close
in interfaceCloseable
- Specified by:
-
close
in interfaceIASN1InputStream
- Throws:
-
IOException
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-