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

Constructor Index

 o SerializationConvertion()
Default constructor.

Method Index

 o fromBytes(byte[])
Deserialize an object from an array of object bytes.
 o setFramework(Framework)
Set the Framework reference.
 o toBytes(Object)
Serialize the object to an array of bytes.

Constructors

 o SerializationConvertion
 public SerializationConvertion()
Default constructor.

Methods

 o 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.
 o 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.
 o setFramework
 public void setFramework(Framework cmf)
Set the Framework reference.


All Packages  Class Hierarchy  This Package  Previous  Next  Index