All LDAP Classes
Internal LDAP Classes

com.novell.ldap.asn1
Class ASN1Sequence

java.lang.Object
  extended by com.novell.ldap.asn1.ASN1Object
      extended by com.novell.ldap.asn1.ASN1Structured
          extended by com.novell.ldap.asn1.ASN1Sequence
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
RfcAddRequest, RfcAttributeTypeAndValues, RfcAttributeValueAssertion, RfcBindRequest, RfcBindResponse, RfcCompareRequest, RfcControl, RfcExtendedRequest, RfcExtendedResponse, RfcIntermediateResponse, RfcLDAPMessage, RfcLDAPResult, RfcMatchingRuleAssertion, RfcModifyDNRequest, RfcModifyRequest, RfcSaslCredentials, RfcSearchRequest, RfcSearchResultEntry, RfcSubstringFilter

public class ASN1Sequence
extends ASN1Structured

The ASN1Sequence class can hold an ordered collection of components with distinct type. This class inherits from the ASN1Structured class which provides functionality to hold multiple ASN1 components.

See Also:
Serialized Form

Field Summary
private static ASN1Identifier ID
          ID is added for Optimization.
static int TAG
          ASN.1 SEQUENCE tag definition.
 
Constructor Summary
ASN1Sequence()
          Constructs an ASN1Sequence object with no actual ASN1Objects in it.
ASN1Sequence(ASN1Decoder dec, java.io.InputStream in, int len)
          Constructs an ASN1Sequence object by decoding data from an input stream.
ASN1Sequence(ASN1Object[] newContent, int size)
          Constructs an ASN1Sequence object with an array representing an ASN1 sequence.
ASN1Sequence(int size)
          Constructs an ASN1Sequence object with the specified number of placeholders for ASN1Objects.
 
Method Summary
 java.lang.String toString()
          Return a String representation of this ASN1Sequence.
 
Methods inherited from class com.novell.ldap.asn1.ASN1Structured
add, decodeStructured, encode, get, set, size, toArray, toString
 
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

TAG

public static final int TAG
ASN.1 SEQUENCE tag definition.

See Also:
Constant Field Values

ID

private static final ASN1Identifier ID
ID is added for Optimization. id needs only be one Value for every instance Thus we create it only once.

Constructor Detail

ASN1Sequence

public ASN1Sequence()
Constructs an ASN1Sequence object with no actual ASN1Objects in it. Assumes a default size of 10 elements.


ASN1Sequence

public ASN1Sequence(int size)
Constructs an ASN1Sequence object with the specified number of placeholders for ASN1Objects. It should be noted there are no actual ASN1Objects in this SequenceOf object.

Parameters:
size - Specifies the initial size of the collection.

ASN1Sequence

public ASN1Sequence(ASN1Object[] newContent,
                    int size)
Constructs an ASN1Sequence object with an array representing an ASN1 sequence.

Parameters:
newContent - the array containing the ASN1 data for the sequence
size - Specifies the number of items in the array

ASN1Sequence

public ASN1Sequence(ASN1Decoder dec,
                    java.io.InputStream in,
                    int len)
             throws java.io.IOException
Constructs an ASN1Sequence object by decoding data from an input stream.

Parameters:
dec - The decoder object to use when decoding the input stream. Sometimes a developer might want to pass in his/her own decoder object
in - A byte stream that contains the encoded ASN.1
Throws:
java.io.IOException
Method Detail

toString

public java.lang.String toString()
Return a String representation of this ASN1Sequence.

Overrides:
toString in class ASN1Object

All LDAP Classes
Internal LDAP Classes

Copyright ? 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000