public interface TtlvBuilder
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
build() |
Returns the binary representation of the message.
|
TtlvBuilder |
putBlob(short tag,
byte[] value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putBoolean(short tag,
java.lang.Boolean value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putByte(short tag,
java.lang.Byte value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putCharacter(short tag,
java.lang.Character value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putDouble(short tag,
java.lang.Double value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putFloat(short tag,
java.lang.Float value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putInteger(short tag,
java.lang.Integer value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putLong(short tag,
java.lang.Long value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putShort(short tag,
java.lang.Short value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putUtf16String(short tag,
java.lang.String value) |
Associates the given value with the given tag in the message.
|
TtlvBuilder |
putUtf8String(short tag,
java.lang.String value) |
Associates the given value with the given tag in the message.
|
byte[] build()
TtlvBuilder putBlob(short tag, byte[] value)
TtlvBuilder putBoolean(short tag, java.lang.Boolean value)
TtlvBuilder putByte(short tag, java.lang.Byte value)
TtlvBuilder putCharacter(short tag, java.lang.Character value)
TtlvBuilder putDouble(short tag, java.lang.Double value)
TtlvBuilder putFloat(short tag, java.lang.Float value)
TtlvBuilder putInteger(short tag, java.lang.Integer value)
TtlvBuilder putLong(short tag, java.lang.Long value)
TtlvBuilder putShort(short tag, java.lang.Short value)
TtlvBuilder putUtf8String(short tag, java.lang.String value)
TtlvBuilder putUtf16String(short tag, java.lang.String value)