public class KratiDefaultSerializer<T extends Serializable> extends Object implements krati.io.Serializer<T>
| Constructor and Description |
|---|
KratiDefaultSerializer() |
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(byte[] binary)
Deserialize an object from its raw bytes generated by {
Serializer.serialize(Object). |
byte[] |
serialize(T object)
Serialize an object into a byte array.
|
public byte[] serialize(T object) throws krati.io.SerializationException
serialize in interface krati.io.Serializer<T extends Serializable>object - - an object to be serialized by this Serializer.krati.io.SerializationExceptionpublic T deserialize(byte[] binary) throws krati.io.SerializationException
Serializer.serialize(Object).deserialize in interface krati.io.Serializer<T extends Serializable>binary - - the raw bytes from which an object is constructed.krati.io.SerializationException - if the object cannot be constructed from the raw bytes.Apache Camel