Interface Marshaller<V,S>
- Type Parameters:
V- the value typeS- the marshalled type
- All Known Subinterfaces:
ByteBufferMarshaller
- All Known Implementing Classes:
AbstractByteBufferMarshaller, IdentifierMarshaller, JavaByteBufferMarshaller, JBossByteBufferMarshaller, MarshalledValueMarshaller, ProtoStreamByteBufferMarshaller, WrappedMessageByteBufferMarshaller
-
Field Summary
-
Method Summary
Methods inherited from interface Predicate
and, compose, composeBinary, composeDouble, composeInt, composeLong, handle, negate, or, xor
-
Method Details
-
identity
An identity marshaller that does no marshalling.- Type Parameters:
T- the value type- Returns:
- an identity marshaller
-
read
Reads a value from its marshalled form.- Parameters:
value- the marshalled form- Returns:
- an unmarshalled value
- Throws:
IOException- if the value could not be read
-
write
Writes a value to its serialized form- Parameters:
value- a value to marshal.- Returns:
- the serialized form of the value
- Throws:
IOException- if the value could not be written
-