Interface ViewSerializer

All Known Implementing Classes:
AbstractViewMap, MixedViewHandler, StringViewMap, ViewMap

public interface ViewSerializer
Reads and writes the state of a view.
  • Method Details

    • writeView

      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

      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