| Modifier and Type | Field and Description | 
|---|---|
static EndianUtil | 
EndianUtil.BIG_ENDIAN
Directly usable bigEndian EndianUtil. 
 | 
static EndianUtil | 
EndianUtil.LITTLE_ENDIAN
Directly usable littleEndian EndianUtil. 
 | 
| Modifier and Type | Method and 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. 
 | 
| Modifier and Type | Method and 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. 
 | 
T | 
Serializer.deSerialize(byte[] buffer,
           Pointer pointer,
           EndianUtil endianUtil)
Deserialize an object of type T. 
 | 
E[][] | 
ObjectMatrixSerializer.deSerialize(byte[] buffer,
           Pointer pointer,
           EndianUtil endianUtil)  | 
E[] | 
ObjectArraySerializer.deSerialize(byte[] buffer,
           Pointer pointer,
           EndianUtil endianUtil)  | 
String | 
ItemName.deSerialize(byte[] buffer,
           Pointer pointer,
           EndianUtil endianUtil)
Deserialize an object of type T. 
 | 
(package private) 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. 
 | 
(package private) static void | 
TypedMessage.encodeUnit(org.djunits.unit.Unit unit,
          byte[] message,
          Pointer pointer,
          EndianUtil endianUtil)
Code a unit, including MoneyUnits. 
 | 
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 org.djunits.unit.Unit<? extends org.djunits.unit.Unit<?>> | 
TypedMessage.getUnit(byte[] buffer,
       Pointer pointer,
       EndianUtil endianUtil)
Retrieve and decode a DJUNITS unit. 
 | 
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. 
 | 
void | 
ObjectMatrixSerializer.serialize(E[][] matrix,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)  | 
void | 
ObjectArraySerializer.serialize(E[] array,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)  | 
void | 
ItemName.serialize(String object,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s). 
 | 
void | 
Serializer.serialize(T object,
         byte[] buffer,
         Pointer pointer,
         EndianUtil endianUtil)
Serialize an object of type T; not including the prefix byte(s). 
 | 
(package private) 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 | 
ObjectMatrixSerializer.serializeWithPrefix(E[][] matrix,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
ObjectArraySerializer.serializeWithPrefix(E[] array,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
ItemName.serializeWithPrefix(String object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)
Serialize an object of type T including the prefix byte(s). 
 | 
void | 
Serializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)
Serialize an object of type T including the prefix byte(s). 
 | 
void | 
ObjectSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
DjunitsArrayOrMatrixSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
void | 
BasicPrimitiveArrayOrMatrixSerializer.serializeWithPrefix(T object,
                   byte[] buffer,
                   Pointer pointer,
                   EndianUtil endianUtil)  | 
| Constructor and Description | 
|---|
SerialDataDecoder(EndianUtil endianUtil)
Construct a new SerialDataDecoder. 
 | 
SerialDataDumper(EndianUtil endianUtil)
Construct a new SerialDataDumper. 
 | 
SerialDataDumper(EndianUtil endianUtil,
                int addressOffset)
Construct a new SerialDataDumper. 
 | 
Copyright © 2018–2019 Delft University of Technology. All rights reserved.