Class GradientPaintSerializer
java.lang.Object
org.pentaho.reporting.libraries.serializer.methods.GradientPaintSerializer
- All Implemented Interfaces:
SerializeMethod
SerializeMethod for GradientPaint objects.
- Author:
- Thomas Morgner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe class of the object, which this object can serialize.readObject
(ObjectInputStream stream) Reads the object from the object input stream.void
writeObject
(Object o, ObjectOutputStream stream) Writes a serializable object description to the given object output stream.
-
Constructor Details
-
GradientPaintSerializer
public GradientPaintSerializer()Default constructor.
-
-
Method Details
-
writeObject
Writes a serializable object description to the given object output stream.- Specified by:
writeObject
in 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
Reads the object from the object input stream.- Specified by:
readObject
in 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
The class of the object, which this object can serialize.- Specified by:
getObjectClass
in interfaceSerializeMethod
- Returns:
- the class of the object type, which this method handles.
-