Package com.oss.asn1

Class AbstractOpenType

java.lang.Object
com.oss.asn1.AbstractData
com.oss.asn1.AbstractOpenType
All Implemented Interfaces:
com.oss.asn1.PDUContainer, Serializable, Cloneable
Direct Known Subclasses:
OpenType

public abstract class AbstractOpenType extends AbstractData implements com.oss.asn1.PDUContainer
The AbstractOpenType class is a common superclass for OpenType and HugeOpenType classes.
Since:
ASN.1/Java 6.0
See Also:
  • Method Details

    • getEncodedValueAsStream

      public abstract InputStream getEncodedValueAsStream()
      Get the encoding of an instance of a valid ASN.1 type. This will be useful when manual decoding has been used. The stream returned can be passed as the first parameter to the decode method of the Coder. Manual decoding is used by default or when disableAutomaticDecoding() is invoked.
      Returns:
      InputStream representing the encoded data.
    • getDecodedValue

      public final AbstractData getDecodedValue()
      Get the unencoded value as an instance of a valid ASN.1 type. This will be useful when automatic decoding has been used. See the method enableAutomaticDecoding() in the Coder class.
      Specified by:
      getDecodedValue in interface com.oss.asn1.PDUContainer
      Returns:
      reference to the AbstractData object representing the unencoded value of 'this' object.
    • setDecodedValue

      public void setDecodedValue(AbstractData decodedValue)
      Set the unencoded data of a valid ASN.1 type.
      Specified by:
      setDecodedValue in interface com.oss.asn1.PDUContainer
      Parameters:
      decodedValue - the reference to the AbstractData object to set.
    • delete

      public void delete()
      Destroy the instance of the AbstractData. The contract of this method is to facilitate garbage collection by explicit destruction of the data that is no longer needed.
      Overrides:
      delete in class AbstractData
    • clone

      public Object clone()
      Create a deep copy of 'this' object.
      Returns:
      copy of 'this' object.