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.StringEndianUtil. 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 MDoubleMatrixSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.SDoubleScalarSerializer. 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.VDoubleVectorSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.MFloatMatrixSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.SFloatScalarSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.VFloatVectorSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.TSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.voidDoubleMatrixSerializer. serialize(M adm, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidDoubleScalarSerializer. serialize(S ads, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidDoubleVectorArraySerializer. serialize(V[] adva, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidDoubleVectorSerializer. serialize(V adv, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidFloatMatrixSerializer. serialize(M afm, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidFloatScalarSerializer. serialize(S afs, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidFloatVectorSerializer. serialize(V afv, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidObjectMatrixSerializer. serialize(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidSerializer. serialize(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T; not including the prefix byte(s).voidArrayOrMatrixWithUnitSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidBasicPrimitiveArrayOrMatrixSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidObjectArraySerializer. serializeWithPrefix(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidObjectMatrixSerializer. serializeWithPrefix(E[][] matrix, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidObjectSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)voidSerializer. serializeWithPrefix(T object, byte[] buffer, Pointer pointer, EndianUtil endianUtil)Serialize an object of type T including the prefix byte(s).intDoubleMatrixSerializer. 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).intDoubleScalarSerializer. 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).intDoubleVectorArraySerializer. 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).intDoubleVectorSerializer. 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).intFloatMatrixSerializer. 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).intFloatScalarSerializer. 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).intFloatVectorSerializer. 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).intObjectMatrixSerializer. size(E[][] matrix)intSerializer. 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).intArrayOrMatrixWithUnitSerializer. sizeWithPrefix(T object)intBasicPrimitiveArrayOrMatrixSerializer. sizeWithPrefix(T object)intObjectMatrixSerializer. sizeWithPrefix(E[][] matrix)intObjectSerializer. sizeWithPrefix(T object)intSerializer. 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).