org.pentaho.reporting.libraries.xmlns.parser

Class StringReadHandler

public class StringReadHandler extends AbstractXmlReadHandler

A XmlReadHandler that reads character-data for the given element.

Author: Thomas Morgner

Constructor Summary
StringReadHandler()
Creates a new handler.
Method Summary
voidcharacters(char[] ch, int start, int length)
This method is called to process the character data between element tags.
protected voiddoneParsing()
Done parsing.
ObjectgetObject()
Returns the object for this element.
StringgetResult()
Returns the result as string.
protected voidstartParsing(Attributes attrs)
Starts parsing.

Constructor Detail

StringReadHandler

public StringReadHandler()
Creates a new handler.

Method Detail

characters

public void characters(char[] ch, int start, int length)
This method is called to process the character data between element tags.

Parameters: ch the character buffer. start the start index. length the length.

Throws: SAXException if there is a parsing error.

doneParsing

protected void doneParsing()
Done parsing.

Throws: SAXException if there is a parsing error.

getObject

public Object getObject()
Returns the object for this element.

Returns: the object.

getResult

public String getResult()
Returns the result as string.

Returns: the parse-result as string.

startParsing

protected void startParsing(Attributes attrs)
Starts parsing.

Parameters: attrs the attributes.

Throws: SAXException if there is a parsing error.