public class TypedData
extends org.apache.directory.api.asn1.AbstractAsn1Object
| Modifier and Type | Class and Description |
|---|---|
class |
TypedData.TD |
| Constructor and Description |
|---|
TypedData() |
| Modifier and Type | Method and Description |
|---|---|
int |
computeLength()
Compute the TypedData length
|
void |
createNewTD()
Create a new currentTD
|
ByteBuffer |
encode(ByteBuffer buffer) |
int |
getCurrentDataType() |
byte[] |
getCurrentDataValue() |
TypedData.TD |
getCurrentTD() |
List<TypedData.TD> |
getTypedData() |
void |
setCurrentDataType(int tdType)
Set the current TD type
|
void |
setCurrentDataValue(byte[] tdData)
Set the current TD data
|
String |
toString() |
String |
toString(String tabs) |
public int getCurrentDataType()
public void setCurrentDataType(int tdType)
public byte[] getCurrentDataValue()
public void setCurrentDataValue(byte[] tdData)
public TypedData.TD getCurrentTD()
public void createNewTD()
public 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)]
public ByteBuffer encode(ByteBuffer buffer) throws org.apache.directory.api.asn1.EncoderException
encode in interface org.apache.directory.api.asn1.Asn1Objectencode in class org.apache.directory.api.asn1.AbstractAsn1Objectorg.apache.directory.api.asn1.EncoderExceptionpublic String toString()
toString in class ObjectObject.toString()public String toString(String tabs)
Object.toString()Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.