Class Arc2DSerializer
- java.lang.Object
-
- org.pentaho.reporting.libraries.serializer.methods.Arc2DSerializer
-
- All Implemented Interfaces:
SerializeMethod
public class Arc2DSerializer extends Object implements SerializeMethod
A serialize-Method for Arc-2D Shapes.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description Arc2DSerializer()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassgetObjectClass()The class of the object, which this object can serialize.ObjectreadObject(ObjectInputStream stream)Reads the object from the object input stream.voidwriteObject(Object o, ObjectOutputStream stream)Writes a serializable object description to the given object output stream.
-
-
-
Method Detail
-
writeObject
public void writeObject(Object o, ObjectOutputStream stream) throws IOException
Writes a serializable object description to the given object output stream.- Specified by:
writeObjectin interfaceSerializeMethod- Parameters:
o- the to be serialized object.stream- the outputstream that should receive the object.- Throws:
IOException- if an I/O error occured.
-
readObject
public Object readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
Reads the object from the object input stream.- Specified by:
readObjectin interfaceSerializeMethod- Parameters:
stream- the object input stream from where to read the serialized data.- Returns:
- the generated object.
- Throws:
IOException- if reading the stream failed.ClassNotFoundException- if serialized object class cannot be found.
-
getObjectClass
public Class getObjectClass()
The class of the object, which this object can serialize.- Specified by:
getObjectClassin interfaceSerializeMethod- Returns:
- the class of the object type, which this method handles.
-
-