|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.ldap.asn1.ASN1Object com.novell.ldap.asn1.ASN1Numeric com.novell.ldap.asn1.ASN1Enumerated
This class encapsulates the ASN.1 ENUMERATED type.
Field Summary | |
static ASN1Identifier |
ID
ID is added for Optimization. |
static int |
TAG
ASN.1 tag definition for ENUMERATED |
Constructor Summary | |
ASN1Enumerated(ASN1Decoder dec,
java.io.InputStream in,
int len)
Constructs an ASN1Enumerated object by decoding data from an input stream. |
|
ASN1Enumerated(int content)
Call this constructor to construct an ASN1Enumerated object from an integer value. |
|
ASN1Enumerated(long content)
Call this constructor to construct an ASN1Enumerated object from a long value. |
Method Summary | |
void |
encode(ASN1Encoder enc,
java.io.OutputStream out)
Call this method to encode the current instance into the specified output stream using the specified encoder object. |
java.lang.String |
toString()
Return a String representation of this ASN1Enumerated. |
Methods inherited from class com.novell.ldap.asn1.ASN1Numeric |
intValue, longValue |
Methods inherited from class com.novell.ldap.asn1.ASN1Object |
getEncoding, getIdentifier, setIdentifier |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int TAG
public static final ASN1Identifier ID
ID needs only be one Value for every instance, thus we create it only once.
Constructor Detail |
public ASN1Enumerated(int content)
content
- The integer value to be contained in the
this ASN1Enumerated objectpublic ASN1Enumerated(long content)
content
- The long value to be contained in the
this ASN1Enumerated objectpublic ASN1Enumerated(ASN1Decoder dec, java.io.InputStream in, int len) throws java.io.IOException
dec
- The decoder object to use when decoding the
input stream. Sometimes a developer might want to pass
in his/her own decoder objectin
- A byte stream that contains the encoded ASN.1Method Detail |
public final void encode(ASN1Encoder enc, java.io.OutputStream out) throws java.io.IOException
encode
in class ASN1Object
enc
- Encoder object to use when encoding self.out
- The output stream onto which the encoded byte
stream is written.
java.io.IOException
public java.lang.String toString()
toString
in class ASN1Object
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |