public class XmlnsContentHandler extends ProxyContentHandler
startPrefixMapping(String, String) calls.handler| Constructor and Description | 
|---|
| XmlnsContentHandler(ContentHandler handler) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | startElement(String namespaceURI,
            String localName,
            String qName,
            Attributes atts)Adds the recorded namespace mappings (if any) as "xmlns" attributes
 before passing the call on to the proxied content handler. | 
| void | startPrefixMapping(String prefix,
                  String uri)Records the namespace mapping and passes the call to the proxied
 content handler. | 
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, toStringerror, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningpublic XmlnsContentHandler(ContentHandler handler)
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class ProxyContentHandlerprefix - passed throughuri - passed throughSAXException - if an error occurspublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class ProxyContentHandlernamespaceURI - passed throughlocalName - passed throughqName - passed throughatts - passed throughSAXException - if an error occursCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.