org.rutil.file
Interface SerializableObjectHandler<T extends java.io.Serializable>


public interface SerializableObjectHandler<T extends java.io.Serializable>

Object handler that encapsulates serialization/de-serialization rules for objects written to/read from the disk via SerializableObjectsFile

Author:
mohan
See Also:
SerializableObjectsFile

Method Summary
 byte[] toBytes(T value)
           
 T toObject(byte[] byteValue)
           
 

Method Detail

toBytes

byte[] toBytes(T value)
               throws SerializableObjectHandlerException
Throws:
SerializableObjectHandlerException

toObject

T toObject(byte[] byteValue)
                                        throws SerializableObjectHandlerException
Throws:
SerializableObjectHandlerException