All Packages Class Hierarchy This Package Previous Next Index
Class examples.jdbc.SerializationConvertion
java.lang.Object
|
+----examples.jdbc.SerializationConvertion
- public class SerializationConvertion
- extends Object
This class is responsible for the serialization and
deserialization of objects from and to byte arrays.
- See Also:
- Serializable, SerializationInputStream, SerializationOutputStream
-
SerializationConvertion()
- Default constructor.
-
fromBytes(byte[])
- Deserialize an object from an array of object bytes.
-
setFramework(Framework)
- Set the
Framework reference.
-
toBytes(Object)
- Serialize the object to an array of bytes.
SerializationConvertion
public SerializationConvertion()
- Default constructor.
toBytes
public byte[] toBytes(Object object) throws IllegalArgumentException
- Serialize the object to an array of bytes.
- Throws: IllegalArgumentException
- Unable to convert the object
to an array of bytes.
fromBytes
public Object fromBytes(byte buffer[]) throws IllegalArgumentException
- Deserialize an object from an array of object bytes.
- Throws: IllegalArgumentException
- Unable to recostruct the object
from the array of bytes.
setFramework
public void setFramework(Framework cmf)
- Set the
Framework reference.
All Packages Class Hierarchy This Package Previous Next Index