Uses of Class
org.djutils.serialization.SerializationException
Package
Description
Interface and code to serialize and deserialize data.
The different types of (de)serializers..
-
Uses of SerializationException in org.djutils.serialization
Modifier and TypeMethodDescription(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.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. -
Uses of SerializationException in org.djutils.serialization.serializers
Modifier and TypeMethodDescriptionDoubleMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) DoubleScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) V[]
DoubleVectorArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) DoubleVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) FloatVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Deserialize an object of type T.void
DoubleMatrixSerializer.serialize
(M adm, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleScalarSerializer.serialize
(S ads, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleVectorArraySerializer.serialize
(V[] adva, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
DoubleVectorSerializer.serialize
(V adv, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatMatrixSerializer.serialize
(M afm, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatScalarSerializer.serialize
(S afs, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
FloatVectorSerializer.serialize
(V afv, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectMatrixSerializer.serialize
(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil) void
Serializer.serialize
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serialize an object of type T; not including the prefix byte(s).final void
ArrayOrMatrixWithUnitSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectArraySerializer.serializeWithPrefix
(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final void
ObjectMatrixSerializer.serializeWithPrefix
(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil) final 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
int
int
int
int
int
int
final int
int
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).final int
ArrayOrMatrixWithUnitSerializer.sizeWithPrefix
(T object) final int
BasicPrimitiveArrayOrMatrixSerializer.sizeWithPrefix
(T object) final int
ObjectMatrixSerializer.sizeWithPrefix
(E[][] matrix) final 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).