Package edu.umd.cs.findbugs
Class SAXBugCollectionHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
edu.umd.cs.findbugs.SAXBugCollectionHandler
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
Build a BugCollection based on SAX events. This is intended to replace the
old DOM-based parsing of XML bug result files, which was very slow.
- Author:
- David Hovemeyer
-
Constructor Summary
ConstructorsConstructorDescriptionSAXBugCollectionHandler(BugCollection bugCollection) SAXBugCollectionHandler(BugCollection bugCollection, File base) SAXBugCollectionHandler(Filter filter, File base) SAXBugCollectionHandler(Project project, File base) -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) booleandiscardedElement(String qName) voidendElement(String uri, String name, String qName) getOptionalAttribute(Attributes attributes, String qName) voidstartElement(String uri, String name, String qName, Attributes attributes) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, 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
-
SAXBugCollectionHandler
-
SAXBugCollectionHandler
-
SAXBugCollectionHandler
-
SAXBugCollectionHandler
-
-
Method Details
-
getOptionalAttribute
-
discardedElement
-
getTextContents
-
startElement
public void startElement(String uri, String name, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler
-