Class MixAuditJsonParser


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

      Constructors 
      Constructor Description
      MixAuditJsonParser​(java.io.Reader reader)
      Creates a MixAuditJsonParser from a Reader.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<MixAuditResult> getResults()
      Gets the list of results.
      void process()
      Process the input stream to create the list of dependencies.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MixAuditJsonParser

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

      • 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 java.util.List<MixAuditResult> getResults()
        Gets the list of results.
        Returns:
        the list of results