Class StringReadHandler
- java.lang.Object
-
- org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
-
- org.pentaho.reporting.libraries.xmlns.parser.StringReadHandler
-
- All Implemented Interfaces:
XmlReadHandler
- Direct Known Subclasses:
PropertyReadHandler
public class StringReadHandler extends AbstractXmlReadHandler
A XmlReadHandler that reads character-data for the given element.- Author:
- Thomas Morgner
-
-
Constructor Summary
Constructors Constructor Description StringReadHandler()Creates a new handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.pentaho.reporting.libraries.xmlns.parser.AbstractXmlReadHandler
deriveParseParameters, endElement, getHandlerForChild, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
-
-
-
-
Method Detail
-
startParsing
protected void startParsing(Attributes attrs) throws SAXException
Starts parsing.- Overrides:
startParsingin classAbstractXmlReadHandler- Parameters:
attrs- the attributes.- Throws:
SAXException- if there is a parsing error.
-
characters
public void characters(char[] ch, int start, int length) throws SAXExceptionThis method is called to process the character data between element tags.- Specified by:
charactersin interfaceXmlReadHandler- Overrides:
charactersin classAbstractXmlReadHandler- Parameters:
ch- the character buffer.start- the start index.length- the length.- Throws:
SAXException- if there is a parsing error.
-
doneParsing
protected void doneParsing() throws SAXExceptionDone parsing.- Overrides:
doneParsingin classAbstractXmlReadHandler- Throws:
SAXException- if there is a parsing error.
-
getResult
public String getResult()
Returns the result as string.- Returns:
- the parse-result as string.
-
getObject
public Object getObject()
Returns the object for this element.- Returns:
- the object.
-
-