XCMS Toolkit

schemajic.encoder
Class AtomicValue

java.lang.Object
  extended by schemajic.encoder.TLV
      extended by schemajic.encoder.AtomicValue

public class AtomicValue
extends TLV

Handles details of encoding values of ASN.1 types.

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

Field Summary
 
Fields inherited from class schemajic.encoder.TLV
_lengthEncoder, _pc, _tagEncoder, _tagLength, _tags, _type
 
Constructor Summary
AtomicValue(Type type, TagList tags, int pc, byte[] encodedData, TagEncoder tagEncoder, LengthEncoder lengthEncoder)
          Constructor for AtomicValue with parameters.
 
Method Summary
 void encode(java.io.OutputStream out)
          Encodes to a provided output stream.
 int getValueLength()
          Returns the lenght of the current encoded data value.
 java.lang.String toString()
          Returns a formatted string of encoded data.
 
Methods inherited from class schemajic.encoder.TLV
encodeLength, encodeTags, getEncodedLength, getEncodedTags, getTagLength, getTags, getTotalLength
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AtomicValue

public AtomicValue(Type type,
                   TagList tags,
                   int pc,
                   byte[] encodedData,
                   TagEncoder tagEncoder,
                   LengthEncoder lengthEncoder)
Constructor for AtomicValue with parameters.

Parameters:
type - an ASN.1 type
tags - context specific tags
pc - counter
encodedData - an encoded value of an ASN.1 type
tagEncoder - the type of tags to be encoded
lengthEncoder - encoder for length octets
Method Detail

getValueLength

public int getValueLength()
Returns the lenght of the current encoded data value.

Specified by:
getValueLength in class TLV

encode

public void encode(java.io.OutputStream out)
            throws EncodingException
Encodes to a provided output stream.

Overrides:
encode in class TLV
Parameters:
out - a target output stream for encoding
Throws:
EncodingException

toString

public java.lang.String toString()
Returns a formatted string of encoded data.

Overrides:
toString in class TLV

XCMS Toolkit


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