Interface XmlReadHandler
-
- All Known Implementing Classes:
AbstractXmlReadHandler,IgnoreAnyChildReadHandler,PropertiesReadHandler,PropertyReadHandler,StringReadHandler
public interface XmlReadHandlerA handler for reading an XML element.- Author:
- Thomas Morgner
-
-
Method Summary
All Methods Instance Methods Abstract 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.voidendElement(String uri, String tagName)This method is called at the end of an element.ObjectgetObject()Returns the object for this element or null, if this element does not create an object.voidinit(RootXmlReadHandler rootHandler, String uri, String tagName)Initialise.voidstartElement(String uri, String tagName, Attributes attrs)This method is called at the start of an element.
-
-
-
Method Detail
-
startElement
void startElement(String uri, String tagName, Attributes attrs) throws SAXException
This method is called at the start of an element.- Parameters:
uri- the namespace uri.tagName- the tag name.attrs- the attributes.- Throws:
SAXException- if there is a parsing error.
-
characters
void characters(char[] ch, int start, int length) throws SAXExceptionThis 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.
-
endElement
void endElement(String uri, String tagName) throws SAXException
This method is called at the end of an element.- Parameters:
uri- the namespace uri.tagName- the tag name.- Throws:
SAXException- if there is a parsing error.
-
getObject
Object getObject() throws SAXException
Returns the object for this element or null, if this element does not create an object.- Returns:
- the object.
- Throws:
SAXException- if an parser error occured.
-
init
void init(RootXmlReadHandler rootHandler, String uri, String tagName) throws SAXException
Initialise.- Parameters:
rootHandler- the root handler.uri- the namespace uri.tagName- the tag name.- Throws:
SAXException- if an parser-error occured.
-
-