Package com.caplin.datasource.logging
Interface PacketDeserialiser
-
public interface PacketDeserialiser
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Message
deserialiseDataUpdatePacket(byte[] bytes)
Deserialise a Data Update packet.static PacketDeserialiser
newInstance()
Create an instance of the Packet Deserialiserstatic PacketDeserialiser
newInstance(java.lang.String fieldsFile)
Create an instance of the Packet Deserialiser using the supplied fields file
-
-
-
Method Detail
-
deserialiseDataUpdatePacket
Message deserialiseDataUpdatePacket(byte[] bytes) throws PacketDeserialisationException
Deserialise a Data Update packet. Note: If the bytes are retrieved from a packet log, they should not include the packet header.- Parameters:
bytes
- the bytes for the packet- Returns:
- the Message these bytes represent
- Throws:
PacketDeserialisationException
- packet deserialisation failed
-
newInstance
static PacketDeserialiser newInstance()
Create an instance of the Packet Deserialiser- Returns:
- an instance of the packet deserialiser
-
newInstance
static PacketDeserialiser newInstance(java.lang.String fieldsFile)
Create an instance of the Packet Deserialiser using the supplied fields file- Returns:
- an instance of the packet deserialiser
-
-