Package com.oss.asn1

Class AbstractOpenType

All Implemented Interfaces:
com.oss.asn1.PDUContainer, Serializable, Cloneable
Direct Known Subclasses:
HugeOpenType, OpenType

public abstract class AbstractOpenType extends AbstractData implements com.oss.asn1.PDUContainer
The AbstractOpenType class is a common superclass for OpenType and HugeOpenType classes.
ASN.1/Java 1.4-beta A
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.
      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
      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
      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.
      delete in class AbstractData
    • getTransferSyntax

      public TransferSyntax getTransferSyntax()
      Return encoding rules identifier of this open type value.
      encoding rules identifier of this value.