Package com.oss.asn1

Class RelaySafeEnumerated

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
XRelaySafeEnumerated

public abstract class RelaySafeEnumerated extends Enumerated
The RelaySafeEnumerated class represents the ASN.1 ENUMERATED type and is able to store an unknown extension for further relaying.
Since:
ASN.1/Java 6.0
See Also:
  • Constructor Details

    • RelaySafeEnumerated

      public RelaySafeEnumerated()
      The default constructor.
    • RelaySafeEnumerated

      public RelaySafeEnumerated(long value)
      Construct with a long value.
      Parameters:
      value - the long to set 'this' object to.
  • Method Details

    • isUnknownEnumerator

      public final boolean isUnknownEnumerator()
      Checks if the object is the result of decoding unknown enumerated value of extensible enumerated type.
      Overrides:
      isUnknownEnumerator in class Enumerated
      Returns:
      false
    • readResolve

      public Object readResolve() throws ObjectStreamException
      For serializable classes, the readResolve method allows a class to replace/resolve the object read from the stream before it is returned to the caller. By implementing the readResolve method, this class replaces its own instance being de-serialized by the correspondent pre-existing enumerator. In the JDK 1.2 ObjectInputStream checks if the class of the object defines the readResolve method. If the method is defined, the readResolve method is called when ObjectInputStream has read an object from the stream and is preparing to return it to the caller. To make it work under JDK 1.1, you have to subclass ObjectInputStream and call the readResolve method explicitly from its resolveObject method.
      Returns:
      a replacement for the de-serialized instance, that is a pre-existing enumerator, defined in the specific subclass of the Enumerated.
      Throws:
      ObjectStreamException - if the de-serialized instance is not a legal enumerator of this class.
    • 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
    • setRelayId

      public void setRelayId(String relayID)
      Set the identification of the transfer syntax.
      Parameters:
      relayID - identifies the transfer syntax of this unknown extension.