jlibs.xml.sax.helpers
Class NamespaceSupportReader

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by jlibs.xml.sax.helpers.NamespaceSupportReader
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class NamespaceSupportReader
extends org.xml.sax.helpers.XMLFilterImpl

Author:
Santhosh Kumar T

Field Summary
protected  MyNamespaceSupport nsSupport
           
 
Constructor Summary
NamespaceSupportReader(boolean nsPrefixes)
           
NamespaceSupportReader(XMLReader parent)
           
 
Method Summary
 void endElement(String uri, String localName, String qName)
           
 MyNamespaceSupport getNamespaceSupport()
           
 void parse(InputSource is, org.xml.sax.helpers.DefaultHandler handler)
           
 void parse(String systemId, org.xml.sax.helpers.DefaultHandler handler)
           
 void setDefaultHandler(org.xml.sax.helpers.DefaultHandler handler)
           
 void startDocument()
           
 void startElement(String namespaceURI, String localName, String qualifiedName, Attributes atts)
           
 void startPrefixMapping(String prefix, String uri)
           
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nsSupport

protected MyNamespaceSupport nsSupport
Constructor Detail

NamespaceSupportReader

public NamespaceSupportReader(boolean nsPrefixes)
                       throws ParserConfigurationException,
                              SAXException
Throws:
ParserConfigurationException
SAXException

NamespaceSupportReader

public NamespaceSupportReader(XMLReader parent)
Method Detail

getNamespaceSupport

public MyNamespaceSupport getNamespaceSupport()

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qualifiedName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
SAXException

setDefaultHandler

public void setDefaultHandler(org.xml.sax.helpers.DefaultHandler handler)
                       throws SAXNotSupportedException,
                              SAXNotRecognizedException
Throws:
SAXNotSupportedException
SAXNotRecognizedException

parse

public void parse(InputSource is,
                  org.xml.sax.helpers.DefaultHandler handler)
           throws IOException,
                  SAXException
Throws:
IOException
SAXException

parse

public void parse(String systemId,
                  org.xml.sax.helpers.DefaultHandler handler)
           throws IOException,
                  SAXException
Throws:
IOException
SAXException


Copyright © 2015. All rights reserved.