schemajic.encoder
Class CompositeValue
java.lang.Object
schemajic.encoder.TLV
schemajic.encoder.CompositeValue
- Direct Known Subclasses:
- ChoiceValue, SequenceValue
public class CompositeValue
- extends TLV
Encodes a composite value of an ASN.1 type.
- Version:
- 1.00 - 2006/02/10
- Author:
- support@phillipgriffin.com
|
Method Summary |
void |
add(TLV v)
Adds a given Tag-Length-Value (TLV) element to the current values. |
int |
getValueLength()
Returns the current value length. |
void |
incrementValueLength(int i)
Updates the current value length by the provided amount. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CompositeValue
public CompositeValue(Type type,
TagList tags,
int pc,
TagEncoder tagEncoder,
LengthEncoder lengthEncoder)
- Constructor for
CompositeValue with parameters.
- Parameters:
type - an ASN.1 typetags - context specific tagspc - countertagEncoder - ASN.1 tag encoderlengthEncoder - encoding length encoder
add
public void add(TLV v)
- Adds a given Tag-Length-Value (TLV) element to the current values.
- Parameters:
v - TLV value to be added to the current values
incrementValueLength
public void incrementValueLength(int i)
- Updates the current value length by the provided amount.
- Parameters:
i - integer increment amount
getValueLength
public int getValueLength()
- Returns the current value length.
- Specified by:
getValueLength in class TLV
Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.