Modifier and Type | Field and Description |
---|---|
static byte |
TLV_TYPE_OVERHEAD |
bTlvBuilder
Constructor and Description |
---|
TlvVariableBinding() |
TlvVariableBinding(byte[] bTLV,
java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeBytelength) |
Modifier and Type | Method and Description |
---|---|
void |
add(int iTlvType,
byte[] bValue)
Method add.
|
void |
add(int iTlvType,
byte[] bValue,
int iNumByteLength) |
void |
clear() |
TlvVariableBinding |
clone()
Does Nothing
|
static byte[] |
findTLVIndex(byte[] _bTlvBuffer,
byte[] bParentChildTlvEncodeList,
int iTopLevelTlvNumByteLength)
This Method assumes that each TLV Level that it is searching is of the same Number of Byte Length
|
java.util.List<byte[]> |
getByteListTlvBuffer() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getMapTypeToByteLength()
Method getMapTypeToByteLength.
|
java.util.List<java.lang.Integer> |
getTopLevelTlvList()
Method getTopLevelTlvList.
|
java.util.List<java.lang.Integer> |
getTopLevelTlvList(java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeByteLength)
Method getTopLevelTlvList.
|
java.lang.Boolean |
isEmpty()
True if Empty
|
boolean |
isTLVConstruct(HexString hsTLV,
java.util.Map<java.lang.Integer,java.lang.Integer> miiTlvNumByteLength)
miiTlvNumByteLength
|
int |
length()
Return the number of bytes
|
static int |
nextTLVIndex(byte[] bTlvBuffer,
int iInitalPosition,
int iByteLength) |
byte[] |
toByteArray()
Method toByteArray.
|
java.lang.String |
toString() |
public static final byte TLV_TYPE_OVERHEAD
public TlvVariableBinding()
public TlvVariableBinding(byte[] bTLV, java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeBytelength)
bTLV
- miiTypeBytelength
- public void add(int iTlvType, byte[] bValue) throws TlvException
TlvBuild
add
in interface TlvBuild
iTlvType
- bValue
- TlvException
- * @see com.comcast.oscar.tlv.TlvBuild#add(int, byte[])public void add(int iTlvType, byte[] bValue, int iNumByteLength) throws TlvException
iTlvType
- bValue
- iNumByteLength
- TlvException
public byte[] toByteArray()
TlvBuild
toByteArray
in interface TlvBuild
TlvBuild.toByteArray()
public TlvVariableBinding clone()
clone
in class java.lang.Object
public java.lang.Boolean isEmpty()
isEmpty
in interface TlvBuild
TlvBuild.isEmpty()
public int length()
public java.lang.String toString()
toString
in class java.lang.Object
public void clear()
clear
in interface TlvBuild
TlvBuild.clear()
public java.util.List<java.lang.Integer> getTopLevelTlvList(java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeByteLength)
TlvBuild
getTopLevelTlvList
in interface TlvBuild
miiTypeByteLength
- Mapcom.comcast.oscar.tlv.TlvBuild#getTopLevelTlvList(Map)
public java.util.List<java.lang.Integer> getTopLevelTlvList()
TlvBuild
getTopLevelTlvList
in interface TlvBuild
TlvBuild.getTopLevelTlvList()
public java.util.Map<java.lang.Integer,java.lang.Integer> getMapTypeToByteLength()
TlvBuild
getMapTypeToByteLength
in interface TlvBuild
TlvBuild.getMapTypeToByteLength()
public java.util.List<byte[]> getByteListTlvBuffer()
public static byte[] findTLVIndex(byte[] _bTlvBuffer, byte[] bParentChildTlvEncodeList, int iTopLevelTlvNumByteLength) throws TlvException
bParentChildTlvEncodeList
- _bTlvBuffer
- byte[]iTopLevelTlvNumByteLength
- intTlvException
public boolean isTLVConstruct(HexString hsTLV, java.util.Map<java.lang.Integer,java.lang.Integer> miiTlvNumByteLength)
hsTLV
- miiTlvNumByteLength
- public static int nextTLVIndex(byte[] bTlvBuffer, int iInitalPosition, int iByteLength) throws TlvException
bTlvBuffer
- iInitalPosition
- iByteLength
- TlvException