Class MixAuditJsonParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.elixir.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.
-
-
-
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
-
-