- 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 6.0
- 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.
voidSet the identification of the transfer syntax.
Methods inherited from class com.oss.asn1.Enumerated
clone, compareTo, equalTo, getTypeName, hashCode, longValue, name
Methods inherited from class com.oss.asn1.AbstractData
equals, 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 de-serialized 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 de-serialized instance, that is a pre-existing enumerator, defined in the specific subclass of the Enumerated.
ObjectStreamException- if the de-serialized 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.
setRelayIdpublic void setRelayId
(String relayID)Set the identification of the transfer syntax.
relayID- identifies the transfer syntax of this unknown extension.