Package com.itextpdf.bouncycastle.asn1
Class ASN1OutputStreamBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.asn1.ASN1OutputStreamBC
-
- All Implemented Interfaces:
IASN1OutputStream,java.io.Closeable,java.lang.AutoCloseable
public class ASN1OutputStreamBC extends java.lang.Object implements IASN1OutputStream
Wrapper class forASN1OutputStream.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.asn1.ASN1OutputStreamstream
-
Constructor Summary
Constructors Constructor Description ASN1OutputStreamBC(java.io.OutputStream stream)Creates new wrapper instance forASN1OutputStream.ASN1OutputStreamBC(org.bouncycastle.asn1.ASN1OutputStream stream)Creates new wrapper instance forASN1OutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Delegatesclosemethod call to the wrapped stream.booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.org.bouncycastle.asn1.ASN1OutputStreamgetASN1OutputStream()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.voidwriteObject(IASN1Primitive primitive)Calls actualwriteObjectmethod for the wrapped ASN1OutputStream object.
-
-
-
Constructor Detail
-
ASN1OutputStreamBC
public ASN1OutputStreamBC(java.io.OutputStream stream)
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 Detail
-
getASN1OutputStream
public org.bouncycastle.asn1.ASN1OutputStream getASN1OutputStream()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
ASN1OutputStream.
-
writeObject
public void writeObject(IASN1Primitive primitive) throws java.io.IOException
Calls actualwriteObjectmethod for the wrapped ASN1OutputStream object.- Specified by:
writeObjectin interfaceIASN1OutputStream- Parameters:
primitive- wrapped ASN1Primitive object.- Throws:
java.io.IOException- if an I/O error occurs.
-
close
public void close() throws java.io.IOExceptionDelegatesclosemethod call to the wrapped stream.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Specified by:
closein interfaceIASN1OutputStream- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-