Class Dimension2DSerializer

    • Constructor Detail

      • Dimension2DSerializer

        public Dimension2DSerializer()
        Default Constructor.
    • Method Detail

      • writeObject

        public void writeObject​(Object o,
                                ObjectOutputStream out)
                         throws IOException
        Writes a serializable object description to the given object output stream. This method writes the width and the height of the dimension into the stream.
        Specified by:
        writeObject in interface SerializeMethod
        Parameters:
        o - the to be serialized object.
        out - the outputstream that should receive the object.
        Throws:
        IOException - if an I/O error occured.
      • getObjectClass

        public Class getObjectClass()
        Returns the class of the object, which this object can serialize.
        Specified by:
        getObjectClass in interface SerializeMethod
        Returns:
        the class of java.awt.geom.Dimension2D.