net.infonode.docking

Interface ViewSerializer

public interface ViewSerializer

Reads and writes the state of a view.

Version: $Revision: 1.5 $

Author: $Author: jesper $

Method Summary
ViewreadView(ObjectInputStream in)
Reads and returns a view.
voidwriteView(View view, ObjectOutputStream out)
Writes a view to a stream.

Method Detail

readView

public View readView(ObjectInputStream in)
Reads and returns a view. Must read all the data written in the {@link #writeView} method. Note that the view property values are read automatically, so this method should not read them. This method should return null if the serialized view can't be resolved.

Parameters: in the stream from which to read the view state

Returns: the view, null if the view can't be resolved

Throws: IOException if there is a stream error

writeView

public void writeView(View view, ObjectOutputStream out)
Writes a view to a stream. Note that the view property values are written automatically, so this method should not write them.

Parameters: view the view to write out the stream on which to write the view

Throws: IOException if there is a stream error