Package com.io7m.cedarbridge.runtime.api
Interface CBProtocolSerializerType<T extends CBProtocolMessageType>
- Type Parameters:
T- The type of serialized values
A serializer for protocols.
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(CBSerializationContextType context) Deserialize a value of the given type.voidserialize(CBSerializationContextType context, T value) Serialize a value of the given type.
-
Method Details
-
serialize
Serialize a value of the given type.- Parameters:
context- The serialization contextvalue- The value to be serialized- Throws:
IOException- On I/O errors
-
deserialize
Deserialize a value of the given type.- Parameters:
context- The serialization context- Returns:
- A deserialized value
- Throws:
IOException- On I/O errors
-