Class MixedViewHandler

    • Constructor Detail

      • MixedViewHandler

        public MixedViewHandler​(AbstractViewMap viewMap,
                                ViewSerializer viewSerializer)
        Constructor.
        Parameters:
        viewMap - this map is first searched when serializing a view
        viewSerializer - is used if the view was not found in the viewMap
    • Method Detail

      • writeView

        public void writeView​(View view,
                              java.io.ObjectOutputStream out)
                       throws java.io.IOException
        Description copied from interface: ViewSerializer
        Writes a view to a stream. Note that the view property values are written automatically, so this method should not write them.
        Specified by:
        writeView in interface ViewSerializer
        Parameters:
        view - the view to write
        out - the stream on which to write the view
        Throws:
        java.io.IOException - if there is a stream error
      • readView

        public View readView​(java.io.ObjectInputStream in)
                      throws java.io.IOException
        Description copied from interface: ViewSerializer
        Reads and returns a view. Must read all the data written in the ViewSerializer.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.
        Specified by:
        readView in interface ViewSerializer
        Parameters:
        in - the stream from which to read the view state
        Returns:
        the view, null if the view can't be resolved
        Throws:
        java.io.IOException - if there is a stream error