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, warningpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic 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–2014 Red Hat. All rights reserved.