Uses of Class
org.djutils.serialization.EndianUtil
Package | Description |
---|---|
org.djutils.serialization |
Interface and code to serialize and deserialize data.
|
org.djutils.serialization.serializers |
The different types of (de)serializers..
|
org.djutils.serialization.util |
Utility classes for djutils-serialization.
|
-
Uses of EndianUtil in org.djutils.serialization
Fields in org.djutils.serialization declared as EndianUtil Modifier and Type Field Description static EndianUtil
EndianUtil. BIG_ENDIAN
Directly usable bigEndian EndianUtil.static EndianUtil
EndianUtil. LITTLE_ENDIAN
Directly usable littleEndian EndianUtil.Methods in org.djutils.serialization that return EndianUtil Modifier and Type Method Description static EndianUtil
EndianUtil. bigEndian()
Construct an EndianUtil object that uses bigEndian encoding.static EndianUtil
EndianUtil. littleEndian()
Construct an EndianUtil object that uses littleEndian encoding.Methods in org.djutils.serialization with parameters of type EndianUtil Modifier and Type Method Description 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.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 Unit<U>>
UTypedMessage. getUnit(byte[] buffer, Pointer pointer, EndianUtil endianUtil)
Retrieve and decode a DJUNITS unit.Constructors in org.djutils.serialization with parameters of type EndianUtil Constructor Description SerialDataDecoder(EndianUtil endianUtil)
Construct a new SerialDataDecoder. -
Uses of EndianUtil in org.djutils.serialization.serializers
Methods in org.djutils.serialization.serializers with parameters of type EndianUtil 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.E[]
ObjectArraySerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)
E[][]
ObjectMatrixSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)
T
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)
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
ObjectArraySerializer. serialize(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil)
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.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). -
Uses of EndianUtil in org.djutils.serialization.util
Methods in org.djutils.serialization.util with parameters of type EndianUtil Modifier and Type Method Description static 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.Constructors in org.djutils.serialization.util with parameters of type EndianUtil Constructor Description SerialDataDumper(EndianUtil endianUtil)
Construct a new SerialDataDumper.SerialDataDumper(EndianUtil endianUtil, int addressOffset)
Construct a new SerialDataDumper.