- 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:
Method SummaryModifier and TypeMethodDescription
delete()Destroy the instance of the AbstractData.
final booleanChecks if the object is the result of decoding unknown enumerated value of extensible enumerated type.For Serializable classes, the
readResolvemethod allows a class to replace/resolve the object read from the stream before it is returned to the caller.
Methods inherited from class com.oss.asn1.Enumerated
clone, compareTo, equalTo, hashCode, indexOf, longValue, name
Methods inherited from class com.oss.asn1.AbstractData
equals, getTypeInfo, isEncodable, isPDU, isValid, toString, toString
RelaySafeEnumeratedpublic RelaySafeEnumerated()The default constructor.
(long value)Construct with a long value.
value- the long to set 'this' object to.
isUnknownEnumeratorpublic final boolean isUnknownEnumerator()Checks if the object is the result of decoding unknown enumerated value of extensible enumerated type.
readResolveFor Serializable classes, the
readResolvemethod allows a class to replace/resolve the object read from the stream before it is returned to the caller. By implementing the
readResolvemethod, this class replaces its own instance being deserialized by the correspondent pre-existing enumerator. In the JDK 1.2
ObjectInputStreamchecks if the class of the object defines the
readResolvemethod. If the method is defined, the
readResolvemethod is called when
ObjectInputStreamhas 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
ObjectInputStreamand call the
readResolvemethod explicitly from its
- 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.
deletepublic 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.