Uses of Class
org.djutils.serialization.SerializationException
Package | Description |
---|---|
org.djutils.serialization |
Interface and code to serialize and deserialize data.
|
org.djutils.serialization.serializers |
The different types of (de)serializers..
|
-
Uses of SerializationException in org.djutils.serialization
Methods in org.djutils.serialization that throw SerializationException Modifier and Type Method 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. -
Uses of SerializationException in org.djutils.serialization.serializers
Methods in org.djutils.serialization.serializers that throw SerializationException Modifier and Type Method 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
DoubleMatrixSerializer. serialize(M adm, 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
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
FloatMatrixSerializer. serialize(M afm, 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
FloatVectorSerializer. serialize(V afv, byte[] buffer, Pointer pointer, EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s).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).void
ArrayOrMatrixWithUnitSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)
void
BasicPrimitiveArrayOrMatrixSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)
void
ObjectArraySerializer. serializeWithPrefix(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil)
void
ObjectMatrixSerializer. serializeWithPrefix(E[][] matrix, 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
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
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
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
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
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
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
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
ObjectMatrixSerializer. size(E[][] matrix)
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
ArrayOrMatrixWithUnitSerializer. sizeWithPrefix(T object)
int
BasicPrimitiveArrayOrMatrixSerializer. sizeWithPrefix(T object)
int
ObjectMatrixSerializer. sizeWithPrefix(E[][] matrix)
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).