public interface Encodable
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_ENCODED_SIZE |
static int |
BYTE_ENCODED_SIZE |
static int |
DOUBLE_ENCODED_SIZE |
static int |
FLOAT_ENCODED_SIZE |
static int |
INT_ENCODED_SIZE |
static int |
LONG_ENCODED_SIZE |
static int |
SHORT_ENCODED_SIZE |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(Decoder decoder)
Decodes the content of this object
|
void |
encode(Encoder encoder)
Encodes the content of this object
|
int |
getEncodableClassId()
Returns a unique class identifier.
|
int |
getEncodedSize()
Returns the size of the byte array that results from the encoding of this object.
|
static final int BOOLEAN_ENCODED_SIZE
static final int BYTE_ENCODED_SIZE
static final int SHORT_ENCODED_SIZE
static final int INT_ENCODED_SIZE
static final int LONG_ENCODED_SIZE
static final int FLOAT_ENCODED_SIZE
static final int DOUBLE_ENCODED_SIZE
int getEncodableClassId()
int getEncodedSize()
throws Exception
Exception - if an error occursvoid encode(Encoder encoder) throws Exception
encoder - the encoder to be used for the encodingException - if an error occursCopyright © 2022 ScalAgent D.T.. All rights reserved.