public class PacketCableCompiler extends TlvBuilder
END_OF_BYTE_ARRAY_INDEX, MAX_TLV_LENGTH, TLV_LENGTH_POS_OFFSET, TLV_ONE_BYTE_LENGTH, TLV_TYPE_LENGTH_OVERHEAD, TLV_TYPE_OVERHEAD
bTlvBuilder, miiTypeBytelength
Constructor and Description |
---|
PacketCableCompiler(java.lang.Integer iPacketCableVersion) |
Modifier and Type | Method and Description |
---|---|
void |
commit() |
static java.util.List<HexString> |
getTopLevelTlvToHexStringList(byte[] baTlv)
This method will find each TopLevel TLV and put it into a HexString Object
|
static TlvBuilder |
setFileMarkers(byte[] baTLV)
This Method will remove the existing File Markers and re-add them to the ByteArray
|
static TlvBuilder |
stripFileMarkers(byte[] baTLV) |
static byte[] |
stripTlv(int iType,
byte[] bTlvByteArray) |
byte[] |
toByteArray()
Method toByteArray.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String sSeperation) |
add, add, add, add, add, add, add, add, add, add, add, clear, clone, cloneTlvBuffer, coupleMultipleTopLevelTlvValues, encapsulateTlv, encapsulateTlv, encapsulateTlv, fetchTlv, fetchTlv, findTLVIndex, findTLVIndex, findTLVIndex, getHexString, getMapTypeToByteLength, getTlvHexByType, getTlvHexByType, getTlvLength, getTlvValue, getTlvValue, getTlvValue, getTopLevelTlvList, getTopLevelTlvList, isEmpty, isTLVConstruct, isTLVConstruct, length, nextTLVIndex, nextTLVIndex, reorderTLV, sortByTopLevelTlv, sortByTopLevelTlv, stripTlv, stripZeroByteTLV, tlvDump, topLevelTlvToHexStringList, toStringArray, toStringSeperation
public PacketCableCompiler(java.lang.Integer iPacketCableVersion)
iPacketCableVersion
- public void commit()
public byte[] toByteArray()
TlvBuild
toByteArray
in interface TlvBuild
toByteArray
in class TlvBuilder
TlvBuild.toByteArray()
public java.lang.String toString()
toString
in class TlvBuilder
public java.lang.String toString(java.lang.String sSeperation)
sSeperation
- public static byte[] stripTlv(int iType, byte[] bTlvByteArray) throws TlvException
iType
- bTlvByteArray
- TlvException
public static java.util.List<HexString> getTopLevelTlvToHexStringList(byte[] baTlv) throws TlvException
baTlv
- TlvException
public static TlvBuilder stripFileMarkers(byte[] baTLV) throws java.lang.NullPointerException
baTLV
- java.lang.NullPointerException
public static TlvBuilder setFileMarkers(byte[] baTLV) throws java.lang.NullPointerException
baTLV
- java.lang.NullPointerException