public class StringReadHandler extends AbstractXmlReadHandler
Constructor and Description |
---|
StringReadHandler()
Creates a new handler.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
This method is called to process the character data between element tags.
|
protected void |
doneParsing()
Done parsing.
|
Object |
getObject()
Returns the object for this element.
|
String |
getResult()
Returns the result as string.
|
protected void |
startParsing(Attributes attrs)
Starts parsing.
|
deriveParseParameters, endElement, getHandlerForChild, getLocator, getRootHandler, getTagName, getUri, init, isSameNamespace, performExternalParsing, performExternalParsing, startElement
protected void startParsing(Attributes attrs) throws SAXException
startParsing
in class AbstractXmlReadHandler
attrs
- the attributes.SAXException
- if there is a parsing error.public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface XmlReadHandler
characters
in class AbstractXmlReadHandler
ch
- the character buffer.start
- the start index.length
- the length.SAXException
- if there is a parsing error.protected void doneParsing() throws SAXException
doneParsing
in class AbstractXmlReadHandler
SAXException
- if there is a parsing error.public String getResult()
public Object getObject()
Copyright © 2019 Hitachi Vantara. All rights reserved.