public interface Encoder
| Modifier and Type | Method and Description |
|---|---|
void |
encode16(short s)
Encodes a signed short integer.
|
void |
encode32(int i)
Encodes a signed integer.
|
void |
encode64(long l)
Encodes a signed long integer.
|
void |
encodeBoolean(boolean bool)
Encodes a boolean.
|
void |
encodeByte(byte b)
Encodes a byte.
|
void |
encodeByteArray(byte[] b)
Encodes a byte array that cannot be null.
|
void |
encodeByteArray(byte[] b,
int offset,
int length)
Encodes a byte array that cannot be null.
|
void |
encodeDouble(double d)
Encodes a double.
|
void |
encodeFloat(float f)
Encodes a float.
|
void |
encodeNullableByteArray(byte[] b)
Encodes a byte array that can be null.
|
void |
encodeNullableByteArray(byte[] b,
int offset,
int length)
Encodes a byte array that can be null.
|
void |
encodeNullableString(String str)
Encodes a string that can be null.
|
void |
encodeSignedInt(int i)
Encodes a signed integer.
|
void |
encodeSignedLong(long l)
Encodes a signed long integer.
|
void |
encodeSignedShort(short s)
Encodes a signed short integer.
|
void |
encodeString(String str)
Encodes a string that cannot be null.
|
void |
encodeUnsignedInt(int i)
Encodes an unsigned integer.
|
void |
encodeUnsignedLong(long l)
Encodes an unsigned long integer.
|
void |
encodeUnsignedShort(short s)
Encodes an unsigned short integer.
|
void encodeBoolean(boolean bool)
throws Exception
bool - the value to encodeException - if an error occurs during encodingvoid encodeByte(byte b)
throws Exception
b - the value to encodeException - if an error occurs during encodingvoid encodeSignedShort(short s)
throws Exception
s - the value to encodeException - if an error occurs during encodingvoid encodeUnsignedShort(short s)
throws Exception
s - the value to encodeException - if an error occurs during encodingvoid encode16(short s)
throws Exception
s - the value to encodeException - if an error occurs during encodingvoid encodeSignedInt(int i)
throws Exception
i - the value to encodeException - if an error occurs during encodingvoid encodeUnsignedInt(int i)
throws Exception
i - the value to encodeException - if an error occurs during encodingvoid encode32(int i)
throws Exception
i - the value to encodeException - if an error occurs during encodingvoid encodeSignedLong(long l)
throws Exception
l - the value to encodeException - if an error occurs during encodingvoid encodeUnsignedLong(long l)
throws Exception
l - the value to encodeException - if an error occurs during encodingvoid encode64(long l)
throws Exception
l - the value to encodeException - if an error occurs during encodingvoid encodeNullableString(String str) throws Exception
str - the value to encodeException - if an error occurs during encodingvoid encodeString(String str) throws Exception
str - the value to encodeException - if an error occurs during encodingvoid encodeNullableByteArray(byte[] b)
throws Exception
b - the value to encodeException - if an error occurs during encodingvoid encodeByteArray(byte[] b)
throws Exception
b - the value to encodeException - if an error occurs during encodingvoid encodeNullableByteArray(byte[] b,
int offset,
int length)
throws Exception
b - the value to encodeoffset - the starting index in array blength - the number of bytes to be encodedException - if an error occurs during encodingvoid encodeByteArray(byte[] b,
int offset,
int length)
throws Exception
b - the value to encodeoffset - the starting index in array blength - the number of bytes to be encodedException - if an error occurs during encodingvoid encodeFloat(float f)
throws Exception
f - the value to encodeException - if an error occurs during encodingCopyright © 2022 ScalAgent D.T.. All rights reserved.