net.infonode.docking
Interface ViewSerializer

All Known Implementing Classes:
AbstractViewMap, MixedViewHandler

public interface ViewSerializer

Reads and writes the state of a view.

Version:
$Revision: 1.5 $

Method Summary
 View readView(ObjectInputStream in)
          Reads and returns a view.
 void writeView(View view, ObjectOutputStream out)
          Writes a view to a stream.
 

Method Detail

writeView

public void writeView(View view,
                      ObjectOutputStream out)
               throws IOException
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

readView

public View readView(ObjectInputStream in)
              throws IOException
Reads and returns a view. Must read all the data written in the writeView(net.infonode.docking.View, java.io.ObjectOutputStream) 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


Copyright © 2007 NNL Technology AB. All Rights Reserved.