|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SubHandler | +--edu.ou.kmi.buddyspace.xml.XMLFileDocHandler
Main file handler given to a SAX-enabled parser.
Field Summary | |
protected edu.ou.kmi.buddyspace.xml.XMLFileDocInterface |
isi
instantiating handler, used for sending messages back up the pipe. |
Constructor Summary | |
XMLFileDocHandler()
Creates a new XMLFileDocHandler instance. |
Method Summary | |
void |
handleEndElement(java.lang.String name)
handleEndElement method |
void |
handleStartElement(java.lang.String name,
org.xml.sax.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 |
setDataHandler(edu.ou.kmi.buddyspace.xml.XMLFileDocInterface isi)
set the XMLFileDocInterface, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected edu.ou.kmi.buddyspace.xml.XMLFileDocInterface isi
Constructor Detail |
public XMLFileDocHandler()
XMLFileDocHandler
instance.
Method Detail |
public final void setDataHandler(edu.ou.kmi.buddyspace.xml.XMLFileDocInterface isi)
isi
- XMLFileDocInterfacepublic void handleStartElement(java.lang.String name, org.xml.sax.AttributeList attributes) throws org.xml.sax.SAXException
name
- element nameattributes
- element attributes
org.xml.sax.SAXException
- unknown root element, or XML parsing errorpublic final void handleEndElement(java.lang.String name) throws org.xml.sax.SAXException
handleEndElement
method
name
- a String
value
org.xml.sax.SAXException
- if an error occurspublic void receiveChildData(SubHandler subHandler, java.lang.Object p) throws org.xml.sax.SAXException
receiveChildData
receives packets constructed by the
subordinate handlers, and shuttles it to the protocol handler
subHandler
- a SubHandler
value of the handler the
data came from, unusedp
- an Object
value, a Packet
org.xml.sax.SAXException
- if the data is invalid (i.e. null)public final java.lang.Object stopHandler(java.lang.String name) throws org.xml.sax.SAXException
stopHandler
returns null since there is no 'data'
returned which was not already sent via the 'receive' method.
Object
value, unused.
org.xml.sax.SAXException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |