Class GrokHandler

java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.owasp.dependencycheck.xml.assembly.GrokHandler
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

@NotThreadSafe public class GrokHandler extends DefaultHandler
A handler to read Grok Assembly XML files.
Author:
Jeremy Long
  • Constructor Details

    • GrokHandler

      public GrokHandler()
  • Method Details

    • startElement

      public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
      Handles the start element event.
      Specified by:
      startElement in interface ContentHandler
      Overrides:
      startElement in class DefaultHandler
      Parameters:
      uri - the uri of the element being processed
      localName - the local name of the element being processed
      qName - the qName of the element being processed
      attributes - the attributes of the element being processed
      Throws:
      SAXException - thrown if there is an exception processing
    • endElement

      public void endElement(String uri, String localName, String qName) throws SAXException
      Handles the end element event.
      Specified by:
      endElement in interface ContentHandler
      Overrides:
      endElement in class DefaultHandler
      Parameters:
      uri - the URI of the element
      localName - the local name of the element
      qName - the qName of the element
      Throws:
      SAXException - thrown if there is an exception processing
    • characters

      public void characters(char[] ch, int start, int length) throws SAXException
      Collects the body text of the node being processed.
      Specified by:
      characters in interface ContentHandler
      Overrides:
      characters in class DefaultHandler
      Parameters:
      ch - the char array of text
      start - the start position to copy text from in the char array
      length - the number of characters to copy from the char array
      Throws:
      SAXException - thrown if there is a parsing exception