XCMS Toolkit

schemajic.encoder
Class Length

java.lang.Object
  extended by schemajic.encoder.Length
All Implemented Interfaces:
Encodable

public class Length
extends java.lang.Object
implements Encodable

Represents an encoded length in an ASN.1 Tag/Length/Value encoding.

Version:
1.00 - 2006/02/10
Author:
support@phillipgriffin.com

Constructor Summary
Length()
           
Length(int i)
           
Length(Length length)
           
 
Method Summary
 void add(int i)
           
 void add(Length l)
           
 int calculateEncodedLength()
           
 void encode(java.io.OutputStream out)
           
 byte[] getEncoding()
           
 int getValue()
           
 void setValue(int i)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Length

public Length()

Length

public Length(Length length)

Length

public Length(int i)
Method Detail

getValue

public int getValue()

setValue

public void setValue(int i)

add

public void add(int i)

add

public void add(Length l)

getEncoding

public byte[] getEncoding()

calculateEncodedLength

public int calculateEncodedLength()

encode

public void encode(java.io.OutputStream out)
            throws EncodingException
Specified by:
encode in interface Encodable
Throws:
EncodingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.