| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
bTlvBuffer |
protected java.util.List<byte[]> |
lbTlvBuffer |
protected java.util.Map<java.lang.Integer,java.lang.Integer> |
miiTypeBytelength |
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() |
protected java.util.List<byte[]> lbTlvBuffer
protected byte[] bTlvBuffer
protected java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeBytelength
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
TlvBuildadd in interface TlvBuildiTlvType - 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 - TlvExceptionpublic byte[] toByteArray()
TlvBuildtoByteArray in interface TlvBuildTlvBuild.toByteArray()public TlvVariableBinding clone()
clone in class java.lang.Objectpublic java.lang.Boolean isEmpty()
isEmpty in interface TlvBuildTlvBuild.isEmpty()public int length()
public java.lang.String toString()
toString in class java.lang.Objectpublic void clear()
clear in interface TlvBuildTlvBuild.clear()public java.util.List<java.lang.Integer> getTopLevelTlvList(java.util.Map<java.lang.Integer,java.lang.Integer> miiTypeByteLength)
TlvBuildgetTopLevelTlvList in interface TlvBuildmiiTypeByteLength - Mapcom.comcast.oscar.tlv.TlvBuild#getTopLevelTlvList(Map) public java.util.List<java.lang.Integer> getTopLevelTlvList()
TlvBuildgetTopLevelTlvList in interface TlvBuildTlvBuild.getTopLevelTlvList()public java.util.Map<java.lang.Integer,java.lang.Integer> getMapTypeToByteLength()
TlvBuildgetMapTypeToByteLength in interface TlvBuildTlvBuild.getMapTypeToByteLength()public java.util.List<byte[]> getByteListTlvBuffer()
public static byte[] findTLVIndex(byte[] _bTlvBuffer,
byte[] bParentChildTlvEncodeList,
int iTopLevelTlvNumByteLength)
throws TlvException
bParentChildTlvEncodeList - _bTlvBuffer - byte[]iTopLevelTlvNumByteLength - intTlvExceptionpublic 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