com.ricebridge.xmlman.in
Class SaxHandler

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended bycom.ricebridge.xmlman.in.SaxHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

public class SaxHandler
extends DefaultHandler

Handle SAX events.


Constructor Summary
SaxHandler(boolean pNamespaceAware)
          Create a namespace aware/unaware handler.
 
Method Summary
 void characters(char[] pChars, int pStart, int pLength)
          Handle text data.
 void endElement(String pNamespaceURI, String pLocalName, String pQualifiedName)
          Handle an element end tag.
 void setDocContext(DocContext pDocContext)
          Set the DocContext against which events are handled.
 void setPointHandler(PointHandler pPointHandler)
          Set the PointHandler that will handle the event Points create be this SaxHandler.
 void startElement(String pNamespaceURI, String pLocalName, String pQualifiedName, Attributes pAttributes)
          Handle an element start tag.
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaxHandler

public SaxHandler(boolean pNamespaceAware)
Create a namespace aware/unaware handler.

Method Detail

setPointHandler

public void setPointHandler(PointHandler pPointHandler)
Set the PointHandler that will handle the event Points create be this SaxHandler.


setDocContext

public void setDocContext(DocContext pDocContext)
Set the DocContext against which events are handled.


startElement

public void startElement(String pNamespaceURI,
                         String pLocalName,
                         String pQualifiedName,
                         Attributes pAttributes)
                  throws SAXException
Handle an element start tag.

Throws:
SAXException

endElement

public void endElement(String pNamespaceURI,
                       String pLocalName,
                       String pQualifiedName)
                throws SAXException
Handle an element end tag.

Throws:
SAXException

characters

public void characters(char[] pChars,
                       int pStart,
                       int pLength)
                throws SAXException
Handle text data.

Throws:
SAXException


Copyright © 2004-2005 Ricebridge