Uses of Class
org.djutils.serialization.EndianUtil
Package
Description
Interface and code to serialize and deserialize data.
The different types of (de)serializers..
Utility classes for djutils-serialization.
-
Uses of EndianUtil in org.djutils.serialization
Modifier and TypeFieldDescriptionstatic final EndianUtil
EndianUtil.BIG_ENDIAN
Directly usable bigEndian EndianUtil.static final EndianUtil
EndianUtil.LITTLE_ENDIAN
Directly usable littleEndian EndianUtil.Modifier and TypeMethodDescriptionstatic EndianUtil
EndianUtil.bigEndian()
Construct an EndianUtil object that uses bigEndian encoding.static EndianUtil
EndianUtil.littleEndian()
Construct an EndianUtil object that uses littleEndian encoding.Modifier and TypeMethodDescriptionstatic 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.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.static <U extends org.djunits.unit.Unit<U>>
UTypedMessage.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.ModifierConstructorDescriptionSerialDataDecoder
(EndianUtil endianUtil) Construct a new SerialDataDecoder. -
Uses of EndianUtil 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) final E[]
ObjectArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) final E[][]
ObjectMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Serializer.deSerialize
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Deserialize an object of type T.abstract E
ArrayOrMatrixSerializer.deSerializeElement
(byte[] buffer, int offset, EndianUtil endianUtil) Deserializer for one array or matrix element (without type prefix) must be implemented in implementing sub classes.protected void
ArrayOrMatrixWithUnitSerializer.encodeUnit
(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil) Code a unit, including MoneyUnits.protected void
ObjectWithUnitSerializer.encodeUnit
(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil) Code a unit, including MoneyUnits.protected U
ArrayOrMatrixWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.protected U
ObjectWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, EndianUtil endianUtil) Retrieve and decode a DJUNITS unit.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
ObjectArraySerializer.serialize
(E[] array, 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).abstract void
ArrayOrMatrixSerializer.serializeElement
(E object, byte[] buffer, int offset, EndianUtil endianUtil) Serializer for one array or matrix element (without type prefix) must be implemented in implementing sub classes.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). -
Uses of EndianUtil in org.djutils.serialization.util
Modifier and TypeMethodDescriptionstatic String
SerialDataDumper.serialDataDumper
(EndianUtil endianUtil, byte[] bytes) Create a SerialDataDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.static String
SerialDataDumper.serialDataDumper
(EndianUtil endianUtil, int addressOffset, byte[] bytes) Create a SerialDataDumper object; use it to dump an array of bytes and return the dump as a String.ModifierConstructorDescriptionSerialDataDumper
(EndianUtil endianUtil) Construct a new SerialDataDumper.SerialDataDumper
(EndianUtil endianUtil, int addressOffset) Construct a new SerialDataDumper.