public class TLVBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
BOOLEAN_TAG |
static byte |
BYTE_ARRAY_TAG |
static byte |
CHARACTER_TAG |
static byte |
DESTINATION_TAG |
static byte[] |
EMPTY_SDT |
static byte |
FLOAT_TAG |
static byte |
FOUR_LENGTH_BYTES |
static byte |
INTEGER_TAG |
static byte |
LENGTH_BYTES_MASK |
static byte |
MAP_TAG |
static int |
MAX_ONE_BYTE_LENGTH |
static int |
MAX_THREE_BYTE_LENGTH |
static int |
MAX_TWO_BYTE_LENGTH |
static short |
MAX_UBYTE |
static long |
MAX_UINT |
static BigInteger |
MAX_ULONG |
static int |
MAX_USHORT |
static int |
MAX_UTHRINT |
static byte |
NULL_TAG |
static byte |
ONE_LENGTH_BYTE |
static byte |
QUEUE_DESTINATION |
static byte |
SMF_MESSAGE_TAG |
static byte |
STREAM_TAG |
static byte |
STRING_TAG |
static byte |
THREE_LENGTH_BYTES |
static byte |
TOPIC_DESTINATION |
static byte |
TWO_LENGTH_BYTES |
static byte |
UINTEGER_TAG |
static byte |
UNSUPPORTED_TAG |
| Constructor and Description |
|---|
TLVBuffer(byte[] data) |
TLVBuffer(ByteArray data) |
TLVBuffer(int capacity) |
TLVBuffer(TLVBuffer toclone)
Internal use: copy-constructor to allow message cloning
|
| Modifier and Type | Method and Description |
|---|---|
ByteArray |
asByteArray() |
void |
clear() |
boolean |
equals(Object obj) |
SolByteBuffer |
getSolByteBuffer() |
int |
hashCode() |
boolean |
hasRemaining() |
void |
mark() |
Object |
read() |
void |
reset() |
void |
rewind() |
void |
skip(int num) |
String |
toString() |
int |
write(Boolean value) |
int |
write(Byte value) |
int |
write(byte[] value) |
int |
write(byte[] value,
int offset,
int length) |
int |
write(ByteArray value) |
int |
write(Character value) |
int |
write(Destination value) |
int |
write(Double value) |
int |
write(Float value) |
int |
write(Integer value) |
int |
write(Long value) |
int |
write(Object value) |
int |
write(RawSMFMessage value) |
int |
write(SDTMap value) |
int |
write(SDTStream value) |
int |
write(SDTUnknownType value) |
int |
write(Short value) |
int |
write(String value) |
int |
writeRawByte(byte b)
TESTING ONLY
|
void |
writeTag(byte tag,
byte lengthByte) |
int |
writeTagAndLength(byte tag,
int length) |
int |
writeUnsigned(BigInteger value) |
int |
writeUnsigned(Integer value) |
int |
writeUnsigned(Long value) |
int |
writeUnsigned(Object value) |
int |
writeUnsigned(Short value) |
public static final byte NULL_TAG
public static final byte BOOLEAN_TAG
public static final byte INTEGER_TAG
public static final byte UINTEGER_TAG
public static final byte FLOAT_TAG
public static final byte CHARACTER_TAG
public static final byte BYTE_ARRAY_TAG
public static final byte STRING_TAG
public static final byte DESTINATION_TAG
public static final byte SMF_MESSAGE_TAG
public static final byte MAP_TAG
public static final byte STREAM_TAG
public static final byte UNSUPPORTED_TAG
public static final byte LENGTH_BYTES_MASK
public static final byte ONE_LENGTH_BYTE
public static final byte TWO_LENGTH_BYTES
public static final byte THREE_LENGTH_BYTES
public static final byte FOUR_LENGTH_BYTES
public static final byte TOPIC_DESTINATION
public static final byte QUEUE_DESTINATION
public static final short MAX_UBYTE
public static final int MAX_USHORT
public static final int MAX_UTHRINT
public static final long MAX_UINT
public static final BigInteger MAX_ULONG
public static final int MAX_ONE_BYTE_LENGTH
public static final int MAX_TWO_BYTE_LENGTH
public static final int MAX_THREE_BYTE_LENGTH
public static final byte[] EMPTY_SDT
public TLVBuffer(int capacity)
public TLVBuffer(byte[] data)
public TLVBuffer(ByteArray data)
public TLVBuffer(TLVBuffer toclone)
public SolByteBuffer getSolByteBuffer()
public ByteArray asByteArray()
public void mark()
public void reset()
public void rewind()
public void clear()
public boolean hasRemaining()
public void skip(int num)
throws SDTEOFException
SDTEOFExceptionpublic Object read() throws SDTEOFException
EOFExceptionSDTEOFExceptionpublic int write(Object value)
public int write(Boolean value)
public int write(Byte value)
public int write(Short value)
public int write(Integer value)
public int write(Long value)
public int write(Float value)
public int write(Double value)
public int write(Character value)
public int write(byte[] value)
public int write(byte[] value,
int offset,
int length)
public int write(ByteArray value)
public int write(String value)
public int write(RawSMFMessage value)
public int write(SDTMap value)
public int write(SDTStream value)
public int write(Destination value)
public int write(SDTUnknownType value)
public int writeUnsigned(Object value)
public int writeUnsigned(Short value)
public int writeUnsigned(Integer value)
public int writeUnsigned(Long value)
public int writeUnsigned(BigInteger value)
public int writeRawByte(byte b)
b - parameterSDTException - on errorpublic void writeTag(byte tag,
byte lengthByte)
public int writeTagAndLength(byte tag,
int length)
Copyright 2004-2019 Solace Corporation. All rights reserved.