|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.ldap.asn1.ASN1Object
com.novell.ldap.asn1.ASN1Structured
This class serves as the base type for all ASN.1 structured types.
| Constructor Summary | |
protected |
ASN1Structured(ASN1Identifier id)
|
protected |
ASN1Structured(ASN1Identifier id,
ASN1Object[] newContent,
int size)
|
protected |
ASN1Structured(ASN1Identifier id,
int size)
|
| Method Summary | |
void |
add(ASN1Object value)
Adds a new ASN1Object to the end of this ASN1Structured object. |
protected void |
decodeStructured(ASN1Decoder dec,
java.io.InputStream in,
int len)
Decode an ASN1Structured type from an InputStream. |
void |
encode(ASN1Encoder enc,
java.io.OutputStream out)
Encodes the contents of this ASN1Structured directly to an output stream. |
ASN1Object |
get(int index)
Gets a specific ASN1Object in this structred object. |
void |
set(int index,
ASN1Object value)
Replaces the ASN1Object in the specified index position of this ASN1Structured object. |
int |
size()
Returns the number of ASN1Obejcts that have been encoded into this ASN1Structured class. |
ASN1Object[] |
toArray()
Returns an array containing the individual ASN.1 elements of this ASN1Structed object. |
java.lang.String |
toString(java.lang.String type)
Creates a String representation of this ASN1Structured. |
| Methods inherited from class com.novell.ldap.asn1.ASN1Object |
getEncoding, getIdentifier, setIdentifier, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
protected ASN1Structured(ASN1Identifier id)
protected ASN1Structured(ASN1Identifier id,
int size)
protected ASN1Structured(ASN1Identifier id,
ASN1Object[] newContent,
int size)
| Method Detail |
public final void encode(ASN1Encoder enc,
java.io.OutputStream out)
throws java.io.IOException
encode in class ASN1Objectout - The output stream onto which the encoded
ASN1Object will be placed.
java.io.IOException
protected final void decodeStructured(ASN1Decoder dec,
java.io.InputStream in,
int len)
throws java.io.IOException
java.io.IOExceptionpublic final ASN1Object[] toArray()
public final void add(ASN1Object value)
value - The ASN1Object to add to this ASN1Structured
object.
public final void set(int index,
ASN1Object value)
index - The index into the ASN1Structured object where
this new ANS1Object will be placed.value - The ASN1Object to set in this ASN1Structured
object.public final ASN1Object get(int index)
index - The index of the ASN1Object to get from
this ASN1Structured object.public final int size()
public java.lang.String toString(java.lang.String type)
type - the Type to put in the String representing this structured object
|
LDAP Classes Implements Java LDAP |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||