Package io.hawt.util
Class XmlNamespaceFinder
java.lang.Object
org.xml.sax.helpers.DefaultHandler
io.hawt.util.XmlNamespaceFinder
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final SAXParsercreateParser(SAXParserFactory parserFactory) parseContents(InputSource contents) voidsetFactory(SAXParserFactory factory) voidstartElement(String uri, String localName, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
XmlNamespaceFinder
public XmlNamespaceFinder()
-
-
Method Details
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getNamespaces
-
getFactory
-
setFactory
-
parseContents
public Set<String> parseContents(InputSource contents) throws IOException, ParserConfigurationException, SAXException -
createParser
protected final SAXParser createParser(SAXParserFactory parserFactory) throws ParserConfigurationException, SAXException
-