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.serializationFields in org.djutils.serialization declared as EndianUtil Modifier and Type Field Description static EndianUtilEndianUtil. BIG_ENDIANDirectly usable bigEndian EndianUtil.static EndianUtilEndianUtil. LITTLE_ENDIANDirectly usable littleEndian EndianUtil.Methods in org.djutils.serialization that return EndianUtil Modifier and Type Method Description static EndianUtilEndianUtil. bigEndian()Construct an EndianUtil object that uses bigEndian encoding.static EndianUtilEndianUtil. 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.serializersMethods in org.djutils.serialization.serializers with parameters of type EndianUtil 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.E[]ObjectArraySerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)E[][]ObjectMatrixSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)TSerializer. deSerialize(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Deserialize an object of type T.abstract EArrayOrMatrixSerializer. 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 voidArrayOrMatrixWithUnitSerializer. encodeUnit(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil)Code a unit, including MoneyUnits.protected voidObjectWithUnitSerializer. encodeUnit(U unit, byte[] message, Pointer pointer, EndianUtil endianUtil)Code a unit, including MoneyUnits.protected UArrayOrMatrixWithUnitSerializer. getUnit(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Retrieve and decode a DJUNITS unit.protected UObjectWithUnitSerializer. getUnit(byte[] buffer, Pointer pointer, EndianUtil endianUtil)Retrieve and decode a DJUNITS unit.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).voidObjectArraySerializer. serialize(E[] array, byte[] buffer, Pointer pointer, EndianUtil endianUtil)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).abstract voidArrayOrMatrixSerializer. 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.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).
- 
Uses of EndianUtil in org.djutils.serialization.utilMethods in org.djutils.serialization.util with parameters of type EndianUtil Modifier and Type Method Description static StringSerialDataDumper. 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 StringSerialDataDumper. 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.