|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.sax.SubHandler | +--org.jabber.jabberbeans.sax.XMLStreamDocumentHandler
Main (top level) handler given to a SAX-enabled parser.
Field Summary | |
protected ConnectionBean.InputStreamInterface |
isi
instantiating handler, used for sending messages back up the pipe. |
Constructor Summary | |
XMLStreamDocumentHandler()
Creates a new XMLStreamDocumentHandler instance. |
Method Summary | |
void |
handleEndElement(java.lang.String name)
handleEndElement method catches and calls
disconnect. |
void |
handleStartElement(java.lang.String name,
AttributeList attributes)
handle the start of an element, including finding an appropriate handler for the element or namespace type |
void |
receiveChildData(SubHandler subHandler,
java.lang.Object p)
receiveChildData receives packets constructed by the
subordinate handlers, and shuttles it to the protocol handler |
void |
setPacketHandler(ConnectionBean.InputStreamInterface isi)
set the InputStreamInterface, used to inform client code of new received data. |
java.lang.Object |
stopHandler(java.lang.String name)
stopHandler returns null since there is no 'data'
returned which was not already sent via the 'receive' method. |
Methods inherited from class org.jabber.jabberbeans.sax.SubHandler |
characters, endDocument, endElement, getHandlerFactory, getSubCount, graftParent, graftSubHandler, ignorableWhitespace, processingInstruction, setChildSubHandler, setDocumentLocator, setHandlerFactory, setParent, setParser, startDocument, startElement, startHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConnectionBean.InputStreamInterface isi
Constructor Detail |
public XMLStreamDocumentHandler()
XMLStreamDocumentHandler
instance.
Method Detail |
public final void setPacketHandler(ConnectionBean.InputStreamInterface isi)
isi
- ConnectionBean.InputStreamInterfacepublic void handleStartElement(java.lang.String name, AttributeList attributes) throws SAXException
handleStartElement
in class SubHandler
name
- element nameattributes
- element attributes
SAXException
- unknown root element, or XML parsing errorpublic final void handleEndElement(java.lang.String name) throws SAXException
handleEndElement
method catches and calls
disconnect.
handleEndElement
in class SubHandler
name
- a String
value
SAXException
- if an error occurspublic void receiveChildData(SubHandler subHandler, java.lang.Object p) throws SAXException
receiveChildData
receives packets constructed by the
subordinate handlers, and shuttles it to the protocol handler
receiveChildData
in class SubHandler
subHandler
- a SubHandler
value of the handler the
data came from, unusedp
- an Object
value, a Packet
SAXException
- if the data is invalid (i.e. null)public final java.lang.Object stopHandler(java.lang.String name) throws SAXException
stopHandler
returns null since there is no 'data'
returned which was not already sent via the 'receive' method.
stopHandler
in class SubHandler
Object
value, unused.
SAXException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |