schemajic.encoder
Class AtomicValue
java.lang.Object
schemajic.encoder.TLV
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 typetags - context specific tagspc - counterencodedData - an encoded value of an ASN.1 typetagEncoder - the type of tags to be encodedlengthEncoder - encoder for length octets
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
Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.