jlibs.xml.sax
Class SAXDebugHandler

java.lang.Object
  extended by jlibs.xml.sax.SAXDelegate
      extended by jlibs.xml.sax.SAXDebugHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, DeclHandler, LexicalHandler

public class SAXDebugHandler
extends SAXDelegate

A SAXDelegate that prints sax event information before delgating. This is useful for debugging purposes.

Author:
Santhosh Kumar T

Constructor Summary
SAXDebugHandler(org.xml.sax.helpers.DefaultHandler delegate)
           
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endElement(String uri, String localName, String qName)
           
 void startElement(String uri, String localName, String qName, Attributes attributes)
           
 
Methods inherited from class jlibs.xml.sax.SAXDelegate
attributeDecl, comment, elementDecl, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, error, externalEntityDecl, fatalError, getContentHandler, getDeclHandler, getDTDHandler, getEntityResolver, getErrorHandler, getLexicalHandler, ignorableWhitespace, internalEntityDecl, notationDecl, processingInstruction, resolveEntity, setContentHandler, setDeclHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setHandler, setLexicalHandler, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAXDebugHandler

public SAXDebugHandler(org.xml.sax.helpers.DefaultHandler delegate)
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes attributes)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class SAXDelegate
Throws:
SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws SAXException
Specified by:
characters in interface ContentHandler
Overrides:
characters in class SAXDelegate
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class SAXDelegate
Throws:
SAXException


Copyright © 2015. All rights reserved.