public class XmlNamespaceFinder extends 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 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 © 2018 JBoss by Red Hat. All rights reserved.