public class TypedData
extends java.lang.Object
implements org.apache.directory.api.asn1.Asn1Object
| Modifier and Type | Class and Description |
|---|---|
class |
TypedData.TD |
| Modifier and Type | Field and Description |
|---|---|
private TypedData.TD |
currentTD
The current TD being processed
|
private int[] |
dataTypeTagLength |
private int[] |
dataValueTagLength |
private static boolean |
IS_DEBUG
Speedup for logs
|
private static org.slf4j.Logger |
LOG
The logger
|
private java.util.List<TypedData.TD> |
typedDataList
The list of TypedData elements
|
private int[] |
typedDataSeqLength |
private int |
typedDataSeqSeqLength |
| Constructor and Description |
|---|
TypedData() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the TypedData length
|
void |
createNewTD()
Create a new currentTD
|
java.nio.ByteBuffer |
encode(java.nio.ByteBuffer buffer) |
int |
getCurrentDataType() |
byte[] |
getCurrentDataValue() |
TypedData.TD |
getCurrentTD() |
java.util.List<TypedData.TD> |
getTypedData() |
void |
setCurrentDataType(int tdType)
Set the current TD type
|
void |
setCurrentDataValue(byte[] tdData)
Set the current TD data
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs) |
private java.util.List<TypedData.TD> typedDataList
private TypedData.TD currentTD
private static final org.slf4j.Logger LOG
private static final boolean IS_DEBUG
private int[] dataTypeTagLength
private int[] dataValueTagLength
private int[] typedDataSeqLength
private int typedDataSeqSeqLength
public int getCurrentDataType()
public void setCurrentDataType(int tdType)
public byte[] getCurrentDataValue()
public void setCurrentDataValue(byte[] tdData)
public TypedData.TD getCurrentTD()
public void createNewTD()
public java.util.List<TypedData.TD> getTypedData()
public int computeLength()
0x30 L1 TypedData sequence
|
+-- 0x30 L2 The TD sequence
|
+--> 0xA0 L3 tdType tag
| |
| +--> 0x02 L3-2 tdType (int)
|
+--> [0xA1 L4 tdData tag
|
+--> 0x04 L4-2 tdData (OCTET STRING)]
computeLength in interface org.apache.directory.api.asn1.Asn1Objectpublic java.nio.ByteBuffer encode(java.nio.ByteBuffer buffer)
throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectorg.apache.directory.api.asn1.EncoderExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toString(java.lang.String tabs)
Object.toString()