public class BERTLV extends com.neurotec.lang.NObject implements Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_FF_IS_VALID_FOR_THE_TAG_FIRST_BYTE
Indicates that 0xFF is a valid first byte in a tag.
|
| Modifier and Type | Method and Description |
|---|---|
static BERTLV |
create(int tag)
Creates BER-TLV data object.
|
static BERTLV |
create(int tag,
int flags)
Creates BER-TLV data object.
|
static BERTLV |
fromMemory(byte[] buffer)
Deprecated.
|
static BERTLV |
fromMemory(ByteBuffer buffer)
Creates BER-TLV data object from memory buffer.
|
static BERTLV |
fromMemory(com.neurotec.io.NBuffer buffer)
Creates BER-TLV data object from NBuffer.
|
static BERTLV |
fromMemory(com.neurotec.io.NBuffer buffer,
int flags)
Creates BER-TLV data object from NBuffer.
|
int |
getLength()
Gets the BER-TLV data object length field.
|
int |
getMinLengthSize()
Gets the minimal size of the BER-TLV length field.
|
ConstructedBERTLV |
getOwner()
Gets the owner of the current BER-TLV.
|
int |
getTag()
Gets the BER-TLV data object tag field.
|
static BERTLV[] |
loadMany(byte[] buffer)
Deprecated.
|
static BERTLV[] |
loadMany(ByteBuffer buffer)
Creates an array of BER-TLV data objects.
|
static BERTLV[] |
loadMany(com.neurotec.io.NBuffer buffer)
Creates an array of BER-TLV data objects.
|
static BERTLV[] |
loadMany(com.neurotec.io.NBuffer buffer,
int flags)
Creates an array of BER-TLV data objects.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves a function which retrieves NType object for the enclosing type.
|
void |
setMinLengthSize(int value)
Sets the minimal size of the BER-TLV length field.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static final int FLAG_FF_IS_VALID_FOR_THE_TAG_FIRST_BYTE
public static com.neurotec.lang.NType nativeTypeOf()
public static BERTLV create(int tag)
tag - BER-TLV tag field value.public static BERTLV create(int tag, int flags)
tag - BER-TLV tag field value.flags - Reserved, must be zero.@Deprecated public static BERTLV fromMemory(byte[] buffer)
buffer - Byte array to read BERTLV data from.public static BERTLV fromMemory(ByteBuffer buffer)
buffer - Byte buffer to read BERTLV data from.public static BERTLV fromMemory(com.neurotec.io.NBuffer buffer)
buffer - NBuffer to read BERTLV data from.public static BERTLV fromMemory(com.neurotec.io.NBuffer buffer, int flags)
buffer - NBuffer to read BERTLV data from.flags - Reserved, must be zero.@Deprecated public static BERTLV[] loadMany(byte[] buffer)
buffer - Byte array to read BERTLVs data from.public static BERTLV[] loadMany(ByteBuffer buffer)
buffer - Byte buffer to read BERTLVs data from.public static BERTLV[] loadMany(com.neurotec.io.NBuffer buffer)
buffer - NBuffer to read BERTLVs data from.public static BERTLV[] loadMany(com.neurotec.io.NBuffer buffer, int flags)
buffer - NBuffer to read BERTLVs data from.flags - Reserved, must be zero.public final ConstructedBERTLV getOwner()
getOwner in class com.neurotec.lang.NObjectpublic int getTag()
public int getLength()
public int getMinLengthSize()
public void setMinLengthSize(int value)
value - The minimal size of the BER-TLV lenght field.Copyright © 2016 Neurotechnology. All rights reserved.