org.pentaho.reporting.libraries.serializer.methods

Class AttributedStringSerializer

public class AttributedStringSerializer extends Object implements SerializeMethod

A serializer-method to serialize and deserialize attributed-strings.

Author: Thomas Morgner

Constructor Summary
AttributedStringSerializer()
Default constructor.
Method Summary
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.

Constructor Detail

AttributedStringSerializer

public AttributedStringSerializer()
Default constructor.

Method Detail

getObjectClass

public Class getObjectClass()
The class of the object, which this object can serialize.

Returns: the class of the object type, which this method handles.

readObject

public Object readObject(ObjectInputStream stream)
Reads the object from the object input stream.

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.

writeObject

public void writeObject(Object o, ObjectOutputStream stream)
Writes a serializable object description to the given object output stream.

Parameters: o the to be serialized object. stream the outputstream that should receive the object.

Throws: IOException if an I/O error occured.