|
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.ASN1Choice
The ASN1Choice object represents the choice of any ASN1Object. All ASN1Object methods are delegated to the object this ASN1Choice contains.
Constructor Summary | |
protected |
ASN1Choice()
No arg Constructor. |
|
ASN1Choice(ASN1Object content)
Constructs an ASN1Choice object using an ASN1Object value. |
Method Summary | |
ASN1Object |
choiceValue()
Returns the CHOICE value stored in this ASN1Choice as an ASN1Object. |
void |
encode(ASN1Encoder enc,
java.io.OutputStream out)
Call this method to encode the contents of this ASN1Choice instance into the specified output stream using the specified encoder object. |
ASN1Identifier |
getIdentifier()
This method will return the ASN1Identifier of the encoded ASN1Object.We override the parent method as the identifier of an ASN1Choice depends on the type of the object encoded by this ASN1Choice. |
protected void |
setChoiceValue(ASN1Object content)
Sets the CHOICE value stored in this ASN1Choice. |
void |
setIdentifier(ASN1Identifier id)
Sets the identifier of the contained ASN1Object. |
java.lang.String |
toString()
Return a String representation of this ASN1Object. |
Methods inherited from class com.novell.ldap.asn1.ASN1Object |
getEncoding |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ASN1Choice(ASN1Object content)
content
- The ASN1Object that this ASN1Choice will
encode. Since all ASN1 objects are derived from ASN1Object
any basic type can be passed in.protected ASN1Choice()
Method 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 final ASN1Object choiceValue()
protected void setChoiceValue(ASN1Object content)
content
- The ASN1Object that this ASN1Choice will
encode. Since all ASN1 objects are derived from ASN1Object
any basic type can be passed in.public final ASN1Identifier getIdentifier()
getIdentifier
in class ASN1Object
public final void setIdentifier(ASN1Identifier id)
setIdentifier
in class ASN1Object
id
- An ASN1Identifier object representing the CLASS,
FORM and TAG)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 |