Package com.oss.asn1

Class RelaySafeEnumerated

All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:

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.
ASN.1/Java 1.0-beta A
See Also:
  • Constructor Details

    • RelaySafeEnumerated

      public RelaySafeEnumerated()
      The default constructor.
    • RelaySafeEnumerated

      public RelaySafeEnumerated(long value)
      Construct with a long value.
      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.
      isUnknownEnumerator in class Enumerated
    • 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 deserialized 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.
      a replacement for the deserialized instance, that is a pre-existing enumerator, defined in the specific subclass of the Enumerated.
      ObjectStreamException - if the deserialized 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.
      delete in class AbstractData