org.jfree.report.util.serializers
Class Ellipse2DSerializer

java.lang.Object
  extended byorg.jfree.report.util.serializers.Ellipse2DSerializer
All Implemented Interfaces:
SerializeMethod

public class Ellipse2DSerializer
extends java.lang.Object
implements SerializeMethod

A SerializeMethod implementation that handles Ellipse2D objects.

Author:
Thomas Morgner
See Also:
Ellipse2D

Constructor Summary
Ellipse2DSerializer()
          Default Constructor.
 
Method Summary
 java.lang.Class getObjectClass()
          Returns the class of the object, which this object can serialize.
 java.lang.Object readObject(java.io.ObjectInputStream in)
          Reads the object from the object input stream.
 void writeObject(java.lang.Object o, java.io.ObjectOutputStream out)
          Writes a serializable object description to the given object output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ellipse2DSerializer

public Ellipse2DSerializer()
Default Constructor.

Method Detail

writeObject

public void writeObject(java.lang.Object o,
                        java.io.ObjectOutputStream out)
                 throws java.io.IOException
Writes a serializable object description to the given object output stream.

Specified by:
writeObject in interface SerializeMethod
Parameters:
o - the to be serialized object.
out - the outputstream that should receive the object.
Throws:
java.io.IOException - if an I/O error occured.

readObject

public java.lang.Object readObject(java.io.ObjectInputStream in)
                            throws java.io.IOException,
                                   java.lang.ClassNotFoundException
Reads the object from the object input stream.

Specified by:
readObject in interface SerializeMethod
Parameters:
in - the object input stream from where to read the serialized data.
Returns:
the generated object.
Throws:
java.io.IOException - if reading the stream failed.
java.lang.ClassNotFoundException - if serialized object class cannot be found.

getObjectClass

public java.lang.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.Ellipse2D.