Class GrokHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.owasp.dependencycheck.xml.assembly.GrokHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler,org.xml.sax.DTDHandler,org.xml.sax.EntityResolver,org.xml.sax.ErrorHandler
@NotThreadSafe public class GrokHandler extends org.xml.sax.helpers.DefaultHandlerA handler to read Grok Assembly XML files.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description GrokHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Collects the body text of the node being processed.voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)Handles the end element event.voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)Handles the start element event.
-
-
-
Method Detail
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXExceptionHandles the start element event.- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Overrides:
startElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- the uri of the element being processedlocalName- the local name of the element being processedqName- the qName of the element being processedattributes- the attributes of the element being processed- Throws:
org.xml.sax.SAXException- thrown if there is an exception processing
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXExceptionHandles the end element event.- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Overrides:
endElementin classorg.xml.sax.helpers.DefaultHandler- Parameters:
uri- the URI of the elementlocalName- the local name of the elementqName- the qName of the element- Throws:
org.xml.sax.SAXException- thrown if there is an exception processing
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionCollects the body text of the node being processed.- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Overrides:
charactersin classorg.xml.sax.helpers.DefaultHandler- Parameters:
ch- the char array of textstart- the start position to copy text from in the char arraylength- the number of characters to copy from the char array- Throws:
org.xml.sax.SAXException- thrown if there is a parsing exception
-
-