public class DomBuilderHandler extends Object implements SimpleHandler
DomBuilderHandler - implementation of SimpleHandler building DOM strctures during
parsing time. It also supports creation multiple, sperate document trees if parsed buffer contains a few XML
documents. As a result of work it returns always Queue containing all found XML trees in the
same order as they were found in network data.Element class or instances of class extending Element class. To receive trees
built with instances of proper class user must provide ElementFactory implementation creating instances
of required ELement extension. Created: Sat Oct 2 22:01:34 2004
| Constructor and Description |
|---|
DomBuilderHandler() |
DomBuilderHandler(ElementFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
elementCData(StringBuilder cdata) |
boolean |
endElement(StringBuilder name) |
void |
error(String errorMessage) |
Queue<Element> |
getParsedElements() |
void |
otherXML(StringBuilder other) |
Object |
restoreParserState() |
void |
saveParserState(Object state) |
void |
startElement(StringBuilder name,
StringBuilder[] attr_names,
StringBuilder[] attr_values) |
public DomBuilderHandler(ElementFactory factory)
public DomBuilderHandler()
public void error(String errorMessage)
error in interface SimpleHandlerpublic void startElement(StringBuilder name, StringBuilder[] attr_names, StringBuilder[] attr_values)
startElement in interface SimpleHandlerpublic void elementCData(StringBuilder cdata)
elementCData in interface SimpleHandlerpublic boolean endElement(StringBuilder name)
endElement in interface SimpleHandlerpublic void otherXML(StringBuilder other)
otherXML in interface SimpleHandlerpublic void saveParserState(Object state)
saveParserState in interface SimpleHandlerpublic Object restoreParserState()
restoreParserState in interface SimpleHandlerCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.