Package | Description |
---|---|
org.djutils.serialization |
Interface and code to serialize and deserialize data.
|
org.djutils.serialization.serializers |
The different types of (de)serializers..
|
Modifier and Type | Method and Description |
---|---|
(package private) static Serializer<?>[] |
TypedMessage.buildEncoderList(boolean utf8,
Object... content)
Build the list of serializers corresponding to the data in an Object array.
|
static Object[] |
TypedMessage.decode(byte[] buffer,
Map<Byte,Serializer<?>> decoderMap,
EndianUtil endianUtil)
Decode the message into an object array.
|
static Object[] |
TypedMessage.decodeToObjectDataTypes(byte[] buffer,
EndianUtil endianUtil)
Decode the message into an object array, constructing Java Object arrays and matrices where possible.
|
static Object[] |
TypedMessage.decodeToPrimitiveDataTypes(byte[] buffer,
EndianUtil endianUtil)
Decode the message into an object array, constructing Java Primitive data arrays and matrices where possible.
|
String |
EndianUtil.decodeUTF8String(byte[] message,
int pointer)
Decode a String including the length int from the message byte array.
|
static byte[] |
TypedMessage.encodeUTF16(EndianUtil endianUtil,
Object... content)
Encode the object array into a byte[] message.
|
static byte[] |
TypedMessage.encodeUTF8(EndianUtil endianUtil,
Object... content)
Encode the object array into a byte[] message.
|
(package private) static Serializer<?> |
TypedMessage.findEncoder(boolean utf8,
Object object)
Find the serializer for one object.
|
Modifier and Type | Method and Description |
---|---|
M |
DoubleMatrixSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
S |
DoubleScalarSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
V[] |
DoubleVectorArraySerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
V |
DoubleVectorSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
M |
FloatMatrixSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
S |
FloatScalarSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
V |
FloatVectorSerializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
T |
Serializer.deSerialize(byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Deserialize an object of type T.
|
void |
ObjectMatrixSerializer.serialize(E[][] matrix,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
DoubleMatrixSerializer.serialize(M adm,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
FloatMatrixSerializer.serialize(M afm,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
DoubleScalarSerializer.serialize(S ads,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
FloatScalarSerializer.serialize(S afs,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
Serializer.serialize(T object,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
DoubleVectorArraySerializer.serialize(V[] adva,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
DoubleVectorSerializer.serialize(V adv,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
FloatVectorSerializer.serialize(V afv,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).
|
void |
ObjectMatrixSerializer.serializeWithPrefix(E[][] matrix,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
ObjectArraySerializer.serializeWithPrefix(E[] array,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
ArrayOrMatrixWithUnitSerializer.serializeWithPrefix(T object,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix(T object,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
ObjectSerializer.serializeWithPrefix(T object,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil) |
void |
Serializer.serializeWithPrefix(T object,
byte[] buffer,
Pointer pointer,
EndianUtil endianUtil)
Serialize an object of type T including the prefix byte(s).
|
int |
ObjectMatrixSerializer.size(E[][] matrix) |
int |
DoubleMatrixSerializer.size(M adm)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
FloatMatrixSerializer.size(M afm)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
DoubleScalarSerializer.size(S ads)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
FloatScalarSerializer.size(S afs)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
Serializer.size(T object)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
DoubleVectorSerializer.size(V adv)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
FloatVectorSerializer.size(V afv)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
DoubleVectorArraySerializer.size(V[] adva)
Compute the number of bytes needed to serialize an object of type T (excluding the byte(s) that indicate that an object
of type T is next in the data stream).
|
int |
ObjectMatrixSerializer.sizeWithPrefix(E[][] matrix) |
int |
ArrayOrMatrixWithUnitSerializer.sizeWithPrefix(T object) |
int |
BasicPrimitiveArrayOrMatrixSerializer.sizeWithPrefix(T object) |
int |
ObjectSerializer.sizeWithPrefix(T object) |
int |
Serializer.sizeWithPrefix(T object)
Compute the number of bytes needed to serialize an object of type T (including the byte(s) that indicate that an object
of type T is next in the data stream).
|
Copyright © 2018–2019 Delft University of Technology. All rights reserved.