Class ASN1OutputStreamBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1OutputStreamBC
All Implemented Interfaces:
IASN1OutputStream, Closeable, AutoCloseable

public class ASN1OutputStreamBC extends Object implements IASN1OutputStream
Wrapper class for ASN1OutputStream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates new wrapper instance for ASN1OutputStream.
    ASN1OutputStreamBC(org.bouncycastle.asn1.ASN1OutputStream stream)
    Creates new wrapper instance for ASN1OutputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close()
    Delegates close 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
    Returns a hash code value based on the wrapped object.
    Delegates toString method call to the wrapped object.
    void
    Calls actual writeObject method for the wrapped ASN1OutputStream object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ASN1OutputStreamBC

      public ASN1OutputStreamBC (OutputStream stream)
      Creates new wrapper instance for ASN1OutputStream.
      Parameters:
      stream - OutputStream to create ASN1OutputStream to be wrapped
    • ASN1OutputStreamBC

      public ASN1OutputStreamBC (org.bouncycastle.asn1.ASN1OutputStream stream)
      Creates new wrapper instance for ASN1OutputStream.
      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

      public void writeObject (IASN1Primitive primitive) throws IOException
      Calls actual writeObject method for the wrapped ASN1OutputStream object.
      Specified by:
      writeObject in interface IASN1OutputStream
      Parameters:
      primitive - wrapped ASN1Primitive object.
      Throws:
      IOException - if an I/O error occurs.
    • close

      public void close() throws IOException
      Delegates close method call to the wrapped stream.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface IASN1OutputStream
      Throws:
      IOException
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object