public class TlvCoderUtil extends Object implements SMFNumericConstants
BYTES_IN_A_WORD, EIGHT, ONE, SIXTEEN, THIRTYTWO, TWO| Constructor and Description |
|---|
TlvCoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
encodeTL(byte[] out,
int offset,
int uh,
long enumtype,
int valueLen) |
static int |
encodeTL(GrowableByteBuffer bufToWriteTo,
int uh,
int preamble,
long enumtype,
int valueLen) |
static int |
encodeTL(GrowableByteBuffer bufToWriteTo,
int uh,
long enumtype,
int valueLen) |
static int |
encodeTLAssuredCtrl(byte[] out,
int offset,
int uh,
long enumtype,
int valueLen) |
static int |
encodeTLAssuredCtrl(GrowableByteBuffer bufToWriteTo,
int uh,
long enumtype,
int valueLen) |
static String |
nullTermAsciiToString(byte[] enc) |
static String |
nullTermUtf8ToString(byte[] enc) |
static int |
readClientCtrlTlvParam(InputStream in,
int bytesRead,
int hdrLenBytes,
HeaderDescriptionBean h,
boolean[] known_params) |
static int |
readTlvParam(InputStream in,
int bytesRead,
int hdrLenBytes,
HeaderDescriptionBean h,
boolean[] known_params) |
static byte[] |
toNullTermAscii(String s) |
static byte[] |
toNullTermUtf8(String s) |
static byte[] |
truncateNullTermBinaryString(byte[] input,
int n) |
static int |
writeTlvParam(byte[] out,
int offset,
int uh,
long enumtype,
byte[] value) |
static int |
writeTlvParam(ByteBuffer bufToWriteTo,
ClientCtrlTLVParameter p) |
static int |
writeTlvParam(GrowableByteBuffer bufToWriteTo,
int uh,
long enumtype,
byte[] value) |
static int |
writeTlvParam(GrowableByteBuffer bufToWriteTo,
SmfTLVParameter p) |
static int |
writeTlvParamAssuredCtrl(byte[] out,
int offset,
int uh,
long enumtype,
byte[] value) |
static int |
writeTlvParamAssuredCtrl(GrowableByteBuffer bufToWriteTo,
SmfTLVParameter p) |
public static int readTlvParam(InputStream in, int bytesRead, int hdrLenBytes, HeaderDescriptionBean h, boolean[] known_params) throws IOException
IOExceptionpublic static int readClientCtrlTlvParam(InputStream in, int bytesRead, int hdrLenBytes, HeaderDescriptionBean h, boolean[] known_params) throws IOException
IOExceptionpublic static int writeTlvParam(GrowableByteBuffer bufToWriteTo, SmfTLVParameter p)
public static int writeTlvParamAssuredCtrl(GrowableByteBuffer bufToWriteTo, SmfTLVParameter p)
public static int writeTlvParam(GrowableByteBuffer bufToWriteTo, int uh, long enumtype, byte[] value)
public static int writeTlvParam(byte[] out,
int offset,
int uh,
long enumtype,
byte[] value)
public static int writeTlvParamAssuredCtrl(byte[] out,
int offset,
int uh,
long enumtype,
byte[] value)
public static int writeTlvParam(ByteBuffer bufToWriteTo, ClientCtrlTLVParameter p)
public static int encodeTL(GrowableByteBuffer bufToWriteTo, int uh, long enumtype, int valueLen)
public static int encodeTL(GrowableByteBuffer bufToWriteTo, int uh, int preamble, long enumtype, int valueLen)
public static int encodeTLAssuredCtrl(GrowableByteBuffer bufToWriteTo, int uh, long enumtype, int valueLen)
public static int encodeTL(byte[] out,
int offset,
int uh,
long enumtype,
int valueLen)
public static int encodeTLAssuredCtrl(byte[] out,
int offset,
int uh,
long enumtype,
int valueLen)
public static byte[] toNullTermAscii(String s)
public static byte[] toNullTermUtf8(String s)
public static String nullTermUtf8ToString(byte[] enc)
public static String nullTermAsciiToString(byte[] enc)
public static byte[] truncateNullTermBinaryString(byte[] input,
int n)
Copyright 2004-2020 Solace Corporation. All rights reserved.