Class ASN1InputStreamBC

java.lang.Object
com.itextpdf.bouncycastle.asn1.ASN1InputStreamBC
All Implemented Interfaces:
IASN1InputStream, Closeable, AutoCloseable

public class ASN1InputStreamBC extends Object implements IASN1InputStream
Wrapper class for ASN1InputStream.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ASN1InputStreamBC(byte[] bytes)
    Creates new wrapper instance for ASN1InputStream.
    Creates new wrapper instance for ASN1InputStream.
    ASN1InputStreamBC(org.bouncycastle.asn1.ASN1InputStream asn1InputStream)
    Creates new wrapper instance for ASN1InputStream.
  • 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.ASN1InputStream
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    Calls actual readObject method for the wrapped ASN1InputStream object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

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

    • ASN1InputStreamBC

      public ASN1InputStreamBC (org.bouncycastle.asn1.ASN1InputStream asn1InputStream)
      Creates new wrapper instance for ASN1InputStream.
      Parameters:
      asn1InputStream - ASN1InputStream to be wrapped
    • ASN1InputStreamBC

      public ASN1InputStreamBC (byte[] bytes)
      Creates new wrapper instance for ASN1InputStream.
      Parameters:
      bytes - byte array to create ASN1InputStream
    • ASN1InputStreamBC

      public ASN1InputStreamBC (InputStream stream)
      Creates new wrapper instance for ASN1InputStream.
      Parameters:
      stream - InputStream to create ASN1InputStream
  • Method Details

    • getASN1InputStream

      public org.bouncycastle.asn1.ASN1InputStream getASN1InputStream()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1InputStream.
    • readObject

      public IASN1Primitive readObject() throws IOException
      Calls actual readObject method for the wrapped ASN1InputStream object.
      Specified by:
      readObject in interface IASN1InputStream
      Returns:
      IASN1Primitive 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 IASN1InputStream
      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