Class PageFormatSerializer
- java.lang.Object
-
- org.pentaho.reporting.libraries.serializer.methods.PageFormatSerializer
-
- All Implemented Interfaces:
SerializeMethod
public class PageFormatSerializer extends Object implements SerializeMethod
A SerializeMethod implementation that handles PageFormat objects.- Author:
- Thomas Morgner
- See Also:
PageFormat
-
-
Constructor Summary
Constructors Constructor Description PageFormatSerializer()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class
getObjectClass()
Returns the class of the object, which this object can serialize.Object
readObject(ObjectInputStream in)
Reads the object from the object input stream.void
writeObject(Object o, ObjectOutputStream out)
Writes a serializable object description to the given object output stream.
-
-
-
Method Detail
-
writeObject
public void writeObject(Object o, ObjectOutputStream out) throws IOException
Writes a serializable object description to the given object output stream.- Specified by:
writeObject
in interfaceSerializeMethod
- Parameters:
o
- the to be serialized object.out
- the outputstream that should receive the object.- Throws:
IOException
- if an I/O error occured.
-
readObject
public Object readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
Reads the object from the object input stream.- Specified by:
readObject
in interfaceSerializeMethod
- Parameters:
in
- 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()
Returns the class of the object, which this object can serialize.- Specified by:
getObjectClass
in interfaceSerializeMethod
- Returns:
- the class of java.awt.print.PageFormat.
-
-