LDAP Classes
Implements Java LDAP

com.novell.ldap.asn1
Class ASN1SequenceOf

java.lang.Object
  extended bycom.novell.ldap.asn1.ASN1Object
      extended bycom.novell.ldap.asn1.ASN1Structured
          extended bycom.novell.ldap.asn1.ASN1SequenceOf
All Implemented Interfaces:
java.io.Serializable

public class ASN1SequenceOf
extends ASN1Structured

The ASN1SequenceOf class is used to hold an ordered collection of components with identical type. This class inherits from the ASN1Structured class which already provides functionality to hold multiple ASN1 components.

See Also:
Serialized Form

Field Summary
static ASN1Identifier ID
          ID is added for Optimization.
static int TAG
          ASN.1 SEQUENCE OF tag definition.
 
Constructor Summary
ASN1SequenceOf()
          Constructs an ASN1SequenceOf object with no actual ASN1Objects in it.
ASN1SequenceOf(ASN1Decoder dec, java.io.InputStream in, int len)
          Constructs an ASN1SequenceOf object by decoding data from an input stream.
ASN1SequenceOf(ASN1Sequence sequence)
          A copy constructor which creates an ASN1SequenceOf from an instance of ASN1Sequence.
ASN1SequenceOf(int size)
          Constructs an ASN1SequenceOf object with the specified number of placeholders for ASN1Objects.
 
Method Summary
 java.lang.String toString()
          Returns a String representation of this ASN1SequenceOf object
 
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 OF tag definition.

See Also:
Constant Field Values

ID

public 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

ASN1SequenceOf

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


ASN1SequenceOf

public ASN1SequenceOf(int size)
Constructs an ASN1SequenceOf object with the specified number of placeholders for ASN1Objects. However there are no actual ASN1Objects in this SequenceOf object.

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

ASN1SequenceOf

public ASN1SequenceOf(ASN1Sequence sequence)
A copy constructor which creates an ASN1SequenceOf from an instance of ASN1Sequence. Since SEQUENCE and SEQUENCE_OF have the same identifier, the decoder will always return a SEQUENCE object when it detects that identifier. In order to take advantage of the ASN1SequenceOf type, we need to be able to construct this object when knowingly receiving an ASN1Sequence.


ASN1SequenceOf

public ASN1SequenceOf(ASN1Decoder dec,
                      java.io.InputStream in,
                      int len)
               throws java.io.IOException
Constructs an ASN1SequenceOf 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
Method Detail

toString

public java.lang.String toString()
Returns a String representation of this ASN1SequenceOf object

Overrides:
toString in class ASN1Object

LDAP Classes
Implements Java LDAP

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