LDAP Classes
Implements Java LDAP

com.novell.ldap.asn1
Class ASN1Length

java.lang.Object
  extended bycom.novell.ldap.asn1.ASN1Length

public class ASN1Length
extends java.lang.Object

This class provides a means to manipulate ASN.1 Length's. It will be used by ASN1Encoder's and ASN1Decoder's by composition.


Constructor Summary
ASN1Length()
          Constructs an empty ASN1Length.
ASN1Length(java.io.InputStream in)
          Constructs an ASN1Length object by decoding data from an input stream.
ASN1Length(int length)
          Constructs an ASN1Length
 
Method Summary
 int getEncodedLength()
          Returns the encoded length of this ASN1Length.
 int getLength()
          Returns the length of this ASN1Length.
 void reset(java.io.InputStream in)
          Resets an ASN1Length object by decoding data from an input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASN1Length

public ASN1Length()
Constructs an empty ASN1Length. Values are added by calling reset


ASN1Length

public ASN1Length(int length)
Constructs an ASN1Length


ASN1Length

public ASN1Length(java.io.InputStream in)
           throws java.io.IOException
Constructs an ASN1Length object by decoding data from an input stream.

Parameters:
in - A byte stream that contains the encoded ASN.1
Method Detail

reset

public final void reset(java.io.InputStream in)
                 throws java.io.IOException
Resets an ASN1Length object by decoding data from an input stream. Note: this was added for optimization of ASN1.LBERdecoder.decode()

Parameters:
in - A byte stream that contains the encoded ASN.1
Throws:
java.io.IOException

getLength

public final int getLength()
Returns the length of this ASN1Length.


getEncodedLength

public final int getEncodedLength()
Returns the encoded length of this ASN1Length.


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