public class XmlNamespaceFinder extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
XmlNamespaceFinder() |
Modifier and Type | Method and Description |
---|---|
protected SAXParser |
createParser(SAXParserFactory parserFactory) |
SAXParserFactory |
getFactory() |
Set<String> |
getNamespaces() |
Set<String> |
parseContents(InputSource contents) |
void |
setFactory(SAXParserFactory factory) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public SAXParserFactory getFactory()
public void setFactory(SAXParserFactory factory)
public Set<String> parseContents(InputSource contents) throws IOException, ParserConfigurationException, SAXException
protected final SAXParser createParser(SAXParserFactory parserFactory) throws ParserConfigurationException, SAXException
Copyright © 2011–2016 Red Hat. All rights reserved.