Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.ou.kmi.buddyspace.xml
Class XMLFileDocHandler  view XMLFileDocHandler download XMLFileDocHandler.java

java.lang.Object
  extended bySubHandler
      extended byedu.ou.kmi.buddyspace.xml.XMLFileDocHandler

public class XMLFileDocHandler
extends SubHandler

Main file handler given to a SAX-enabled parser.


Field Summary
protected  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(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

isi

protected XMLFileDocInterface isi
instantiating handler, used for sending messages back up the pipe.

Constructor Detail

XMLFileDocHandler

public XMLFileDocHandler()
Creates a new XMLFileDocHandler instance.

Method Detail

setDataHandler

public final void setDataHandler(XMLFileDocInterface isi)
set the XMLFileDocInterface, used to inform client code of new received data.


handleStartElement

public void handleStartElement(java.lang.String name,
                               org.xml.sax.AttributeList attributes)
                        throws org.xml.sax.SAXException
handle the start of an element, including finding an appropriate handler for the element or namespace type


handleEndElement

public final void handleEndElement(java.lang.String name)
                            throws org.xml.sax.SAXException
handleEndElement method


receiveChildData

public 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


stopHandler

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.