Package com.itextpdf.bouncycastle.asn1
Class ASN1OutputStreamBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1OutputStreamBC
- All Implemented Interfaces:
-
IASN1OutputStream
,Closeable
,AutoCloseable
Wrapper class for
ASN1OutputStream
.
-
Constructor Summary
ConstructorDescriptionASN1OutputStreamBC
(OutputStream stream) Creates new wrapper instance forASN1OutputStream
.ASN1OutputStreamBC
(org.bouncycastle.asn1.ASN1OutputStream stream) Creates new wrapper instance forASN1OutputStream
. -
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.ASN1OutputStream
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.void
writeObject
(IASN1Primitive primitive) Calls actualwriteObject
method for the wrapped ASN1OutputStream object.
-
Constructor Details
-
ASN1OutputStreamBC
Creates new wrapper instance forASN1OutputStream
.- Parameters:
-
stream
- OutputStream to createASN1OutputStream
to be wrapped
-
ASN1OutputStreamBC
public ASN1OutputStreamBC(org.bouncycastle.asn1.ASN1OutputStream stream) Creates new wrapper instance forASN1OutputStream
.- Parameters:
-
stream
-ASN1OutputStream
to be wrapped
-
-
Method Details
-
getASN1OutputStream
public org.bouncycastle.asn1.ASN1OutputStream getASN1OutputStream()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
ASN1OutputStream
.
-
writeObject
Calls actualwriteObject
method for the wrapped ASN1OutputStream object.- Specified by:
-
writeObject
in interfaceIASN1OutputStream
- Parameters:
-
primitive
- 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 interfaceIASN1OutputStream
- 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.
-