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
public class XmlNamespaceFinder extends DefaultHandler
-
-
Constructor Summary
Constructors Constructor Description XmlNamespaceFinder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SAXParsercreateParser(SAXParserFactory parserFactory)SAXParserFactorygetFactory()Set<String>getNamespaces()Set<String>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, warning
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
getFactory
public SAXParserFactory getFactory()
-
setFactory
public void setFactory(SAXParserFactory factory)
-
parseContents
public Set<String> parseContents(InputSource contents) throws IOException, ParserConfigurationException, SAXException
-
createParser
protected final SAXParser createParser(SAXParserFactory parserFactory) throws ParserConfigurationException, SAXException
-
-