Uses of Class
org.djutils.serialization.Endianness
Packages that use Endianness
Package
Description
Interface and code to serialize and deserialize data.
The different types of (de)serializers..
Utility classes for djutils-serialization.
-
Uses of Endianness in org.djutils.serialization
Fields in org.djutils.serialization declared as EndiannessModifier and TypeFieldDescriptionstatic final Endianness
Endianness.BIG_ENDIAN
Directly usable bigEndian EndianUtil.static final Endianness
Endianness.LITTLE_ENDIAN
Directly usable littleEndian EndianUtil.Methods in org.djutils.serialization that return EndiannessModifier and TypeMethodDescriptionstatic Endianness
Endianness.bigEndian()
Construct an EndianUtil object that uses bigEndian encoding.static Endianness
Endianness.littleEndian()
Construct an EndianUtil object that uses littleEndian encoding.Methods in org.djutils.serialization with parameters of type EndiannessModifier and TypeMethodDescriptionstatic Object[]
TypedMessage.decode
(Endianness endianness, byte[] buffer, Map<Byte, Serializer<?>> decoderMap) Decode the message into an object array.static Object
TypedObject.decode
(Endianness endianness, byte[] buffer, Map<Byte, Serializer<?>> decoderMap) Decode the message into a single object.static boolean
TypedObject.decodeBoolean
(Endianness endianness, byte[] buffer) Decode a boolean value from the buffer, including the prefix.static byte
TypedObject.decodeByte
(Endianness endianness, byte[] buffer) Decode a byte value from the buffer, including the prefix.static char
TypedObject.decodeCharUtf16
(Endianness endianness, byte[] buffer) Decode a char value from the buffer, including the prefix, based on a one-byte UTF-16 value.static char
TypedObject.decodeCharUtf8
(Endianness endianness, byte[] buffer) Decode a char value from the buffer, including the prefix, based on a one-byte UTF-8 value.static double
TypedObject.decodeDouble
(Endianness endianness, byte[] buffer) Decode a double value from the buffer, including the prefix.static float
TypedObject.decodeFloat
(Endianness endianness, byte[] buffer) Decode a float value from the buffer, including the prefix.static int
TypedObject.decodeInt
(Endianness endianness, byte[] buffer) Decode an integer value from the buffer, including the prefix.static long
TypedObject.decodeLong
(Endianness endianness, byte[] buffer) Decode a long value from the buffer, including the prefix.static short
TypedObject.decodeShort
(Endianness endianness, byte[] buffer) Decode a short value from the buffer, including the prefix.static Object[]
TypedMessage.decodeToObjectDataTypes
(Endianness endianness, byte[] buffer) Decode the message into an object array, constructing Java Object arrays and matrices where possible.static Object
TypedObject.decodeToObjectDataTypes
(Endianness endianness, byte[] buffer) Decode the message into an object, constructing Java Objects, Object arrays and matrices where possible.static Object[]
TypedMessage.decodeToPrimitiveDataTypes
(Endianness endianness, byte[] buffer) Decode the message into an object array, constructing Java Primitive data arrays and matrices where possible.static Object
TypedObject.decodeToPrimitiveDataTypes
(Endianness endianness, byte[] buffer) Decode the message into an object, constructing Java primitives, primitive data arrays and matrices where possible.static byte[]
TypedMessage.encode
(Endianness endianness, Object... content) Encode the object array into a byte[] message.static byte[]
TypedObject.encode
(Endianness endianness, Object content) Encode the object into a byte[] message.static byte[]
TypedMessage.encodeUTF16
(Endianness endianness, Object... content) Encode the object array into a byte[] message.static byte[]
TypedObject.encodeUTF16
(Endianness endianness, Object content) Encode the object array into a byte[] message.static byte[]
TypedMessage.encodeUTF8
(Endianness endianness, Object... content) Encode the object array into a byte[] message.static byte[]
TypedObject.encodeUTF8
(Endianness endianness, Object content) Encode the object into a byte[] message.static <U extends org.djunits.unit.Unit<U>>
UTypedObject.getUnit
(byte[] buffer, Pointer pointer, Endianness endianness) Retrieve and decode a DJUNITS unit.Constructors in org.djutils.serialization with parameters of type EndiannessModifierConstructorDescriptionSerialDataDecoder
(Endianness endianness) Construct a new SerialDataDecoder. -
Uses of Endianness in org.djutils.serialization.serializers
Methods in org.djutils.serialization.serializers with parameters of type EndiannessModifier and TypeMethodDescriptionDoubleMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) DoubleScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) V[]
DoubleVectorArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) DoubleVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) FloatMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) FloatScalarSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) V[]
FloatVectorArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) FloatVectorSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) final E[]
ObjectArraySerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) final E[][]
ObjectMatrixSerializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) Serializer.deSerialize
(byte[] buffer, Pointer pointer, Endianness endianness) Deserialize an object of type T.abstract E
ArrayOrMatrixSerializer.deSerializeElement
(byte[] buffer, int offset, Endianness endianness) 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, Endianness endianness) Code a unit.protected void
ObjectWithUnitSerializer.encodeUnit
(U unit, byte[] message, Pointer pointer, Endianness endianness) Code a unit.protected U
ArrayOrMatrixWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, Endianness endianness) Retrieve and decode a DJUNITS unit.protected U
ObjectWithUnitSerializer.getUnit
(byte[] buffer, Pointer pointer, Endianness endianness) Retrieve and decode a DJUNITS unit.void
DoubleMatrixSerializer.serialize
(M adm, byte[] buffer, Pointer pointer, Endianness endianness) void
DoubleScalarSerializer.serialize
(S ads, byte[] buffer, Pointer pointer, Endianness endianness) void
DoubleVectorArraySerializer.serialize
(V[] adva, byte[] buffer, Pointer pointer, Endianness endianness) void
DoubleVectorSerializer.serialize
(V adv, byte[] buffer, Pointer pointer, Endianness endianness) void
FloatMatrixSerializer.serialize
(M afm, byte[] buffer, Pointer pointer, Endianness endianness) void
FloatScalarSerializer.serialize
(S afs, byte[] buffer, Pointer pointer, Endianness endianness) void
FloatVectorArraySerializer.serialize
(V[] adva, byte[] buffer, Pointer pointer, Endianness endianness) void
FloatVectorSerializer.serialize
(V afv, byte[] buffer, Pointer pointer, Endianness endianness) final void
ObjectArraySerializer.serialize
(E[] array, byte[] buffer, Pointer pointer, Endianness endianness) final void
ObjectMatrixSerializer.serialize
(E[][] matrix, byte[] buffer, Pointer pointer, Endianness endianness) void
Serializer.serialize
(T object, byte[] buffer, Pointer pointer, Endianness endianness) Serialize an object of type T; not including the prefix byte(s).abstract void
ArrayOrMatrixSerializer.serializeElement
(E object, byte[] buffer, int offset, Endianness endianness) 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, Endianness endianness) final void
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, Endianness endianness) final void
ObjectArraySerializer.serializeWithPrefix
(E[] array, byte[] buffer, Pointer pointer, Endianness endianness) final void
ObjectMatrixSerializer.serializeWithPrefix
(E[][] matrix, byte[] buffer, Pointer pointer, Endianness endianness) final void
ObjectSerializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, Endianness endianness) void
Serializer.serializeWithPrefix
(T object, byte[] buffer, Pointer pointer, Endianness endianness) Serialize an object of type T including the prefix byte(s).final void
StringArraySerializer.serializeWithPrefix
(String[] object, byte[] buffer, Pointer pointer, Endianness endianness) final void
StringMatrixSerializer.serializeWithPrefix
(String[][] object, byte[] buffer, Pointer pointer, Endianness endianness) -
Uses of Endianness in org.djutils.serialization.util
Methods in org.djutils.serialization.util with parameters of type EndiannessModifier and TypeMethodDescriptionstatic String
SerialDataDumper.serialDataDumper
(Endianness endianness, 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
(Endianness endianness, int addressOffset, byte[] bytes) Create a SerialDataDumper object; use it to dump an array of bytes and return the dump as a String.Constructors in org.djutils.serialization.util with parameters of type EndiannessModifierConstructorDescriptionSerialDataDumper
(Endianness endianness) Construct a new SerialDataDumper.SerialDataDumper
(Endianness endianness, int addressOffset) Construct a new SerialDataDumper.