Package net.infonode.docking
Interface ViewSerializer
- All Known Implementing Classes:
AbstractViewMap
,MixedViewHandler
,StringViewMap
,ViewMap
public interface ViewSerializer
Reads and writes the state of a view.
-
Method Summary
Modifier and TypeMethodDescriptionReads and returns a view.void
writeView
(View view, ObjectOutputStream out) Writes a view to a stream.
-
Method Details
-
writeView
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 writeout
- the stream on which to write the view- Throws:
IOException
- if there is a stream error
-
readView
Reads and returns a view. Must read all the data written in thewriteView(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
-