All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.roguewave.vsj.ObjectStreamer

public interface ObjectStreamer
The ObjectStreamer interface describes helper-classes used for saving and restoring objects via VirtualOutputStreams and VirtualInputStreams respectively. When requesting a virtual stream to read or write some object, or graph of objects, the request must be accompanied by an ObjectStreamer. The ObjectStreamer is responsible for determining how each particular object within the graph is, or should be, formatted in the stream. Note that here we use "format" in the larger sense of the object as a whole, that is, the arrangement of the object's state information plus any meta-information such as special codes for back references, class Ids, etc. The actual format of built-in types such as int, float, and long is determined by the virtual streams themselves.


Method Index

 o restore(VirtualInputStream)
Restore an object from the input stream
 o save(Object, VirtualOutputStream)
Save the given object to the output stream

Methods

 o restore
 public abstract Object restore(VirtualInputStream inputStream) throws IOException
Restore an object from the input stream

 o save
 public abstract void save(Object data,
                           VirtualOutputStream outputStream) throws IOException
Save the given object to the output stream


All Packages  Class Hierarchy  This Package  Previous  Next  Index