Class MixAuditJsonParser

java.lang.Object
org.owasp.dependencycheck.data.elixir.MixAuditJsonParser

@NotThreadSafe public class MixAuditJsonParser extends Object
Parses json output from `mix_audit --format json`.
Author:
Christoph Sassenberg
  • Constructor Details

    • MixAuditJsonParser

      public MixAuditJsonParser(Reader reader)
      Creates a MixAuditJsonParser from a Reader.
      Parameters:
      reader - - the java.io.Reader to read the json character stream from
  • Method Details

    • process

      public void process() throws AnalysisException
      Process the input stream to create the list of dependencies.
      Throws:
      AnalysisException - thrown when there is an error parsing the results of `mix_audit --format json`
    • getResults

      public List<MixAuditResult> getResults()
      Gets the list of results.
      Returns:
      the list of results