Class ASN1OutputStreamBC
java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1OutputStreamBC
- All Implemented Interfaces:
IASN1OutputStream, Closeable, AutoCloseable
Wrapper class for
ASN1OutputStream.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionASN1OutputStreamBC(OutputStream stream) Creates new wrapper instance forASN1OutputStream.ASN1OutputStreamBC(org.bouncycastle.asn1.ASN1OutputStream stream) Creates new wrapper instance forASN1OutputStream. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Delegatesclosemethod call to the wrapped stream.booleanIndicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1OutputStreamGets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.toString()DelegatestoStringmethod call to the wrapped object.voidwriteObject(IASN1Primitive primitive) Calls actualwriteObjectmethod for the wrapped ASN1OutputStream object.
-
Field Details
-
stream
private final org.bouncycastle.asn1.ASN1OutputStream stream
-
-
Constructor Details
-
ASN1OutputStreamBC
Creates new wrapper instance forASN1OutputStream.- Parameters:
stream- OutputStream to createASN1OutputStreamto be wrapped
-
ASN1OutputStreamBC
public ASN1OutputStreamBC(org.bouncycastle.asn1.ASN1OutputStream stream) Creates new wrapper instance forASN1OutputStream.- Parameters:
stream-ASN1OutputStreamto be wrapped
-
-
Method Details
-
getASN1OutputStream
public org.bouncycastle.asn1.ASN1OutputStream getASN1OutputStream()Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1OutputStream.
-
writeObject
Calls actualwriteObjectmethod for the wrapped ASN1OutputStream object.- Specified by:
writeObjectin interfaceIASN1OutputStream- Parameters:
primitive- wrapped 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 interfaceIASN1OutputStream- Throws:
IOException
-
equals
-
hashCode
-
toString
-