|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttigase.xmpp.XMPPDomBuilderHandler<RefObject>
RefObject - public class XMPPDomBuilderHandler<RefObject>
XMPPDomBuilderHandler - 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.
Document trees created by this DOM builder consist of instances of
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
| Field Summary | |
|---|---|
static int |
ELEMENTS_NUMBER_LIMIT
|
static String |
ELEMENTS_NUMBER_LIMIT_PROP_KEY
|
| Constructor Summary | |
|---|---|
XMPPDomBuilderHandler(XMPPIOService<RefObject> ioserv)
Constructs ... |
|
XMPPDomBuilderHandler(XMPPIOService<RefObject> ioserv,
tigase.xml.ElementFactory factory)
Constructs ... |
|
| Method Summary | |
|---|---|
void |
elementCData(StringBuilder cdata)
Method description |
void |
endElement(StringBuilder name)
Method description |
void |
error(String errorMessage)
Method description |
Queue<tigase.xml.Element> |
getParsedElements()
Method description |
void |
otherXML(StringBuilder other)
Method description |
boolean |
parseError()
Method description |
Object |
restoreParserState()
Method description |
void |
saveParserState(Object state)
Method description |
void |
startElement(StringBuilder name,
StringBuilder[] attr_names,
StringBuilder[] attr_values)
Method description |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int ELEMENTS_NUMBER_LIMIT
public static final String ELEMENTS_NUMBER_LIMIT_PROP_KEY
| Constructor Detail |
|---|
public XMPPDomBuilderHandler(XMPPIOService<RefObject> ioserv)
ioserv -
public XMPPDomBuilderHandler(XMPPIOService<RefObject> ioserv,
tigase.xml.ElementFactory factory)
ioserv - factory - | Method Detail |
|---|
public void elementCData(StringBuilder cdata)
elementCData in interface tigase.xml.SimpleHandlercdata - public void endElement(StringBuilder name)
endElement in interface tigase.xml.SimpleHandlername - public void error(String errorMessage)
error in interface tigase.xml.SimpleHandlererrorMessage - public Queue<tigase.xml.Element> getParsedElements()
public void otherXML(StringBuilder other)
otherXML in interface tigase.xml.SimpleHandlerother - public boolean parseError()
public Object restoreParserState()
restoreParserState in interface tigase.xml.SimpleHandlerpublic void saveParserState(Object state)
saveParserState in interface tigase.xml.SimpleHandlerstate -
public void startElement(StringBuilder name,
StringBuilder[] attr_names,
StringBuilder[] attr_values)
startElement in interface tigase.xml.SimpleHandlername - attr_names - attr_values -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||