Class ComposerLockParser
- java.lang.Object
-
- org.owasp.dependencycheck.data.composer.ComposerLockParser
-
@NotThreadSafe public class ComposerLockParser extends java.lang.Object
Parses a Composer.lock file from an input stream. In a separate class so it can hopefully be injected.- Author:
- colezlaw
-
-
Constructor Summary
Constructors Constructor Description ComposerLockParser(java.io.InputStream inputStream, boolean skipDev)
Creates a ComposerLockParser from a JsonReader and an InputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ComposerDependency>
getDependencies()
Gets the list of dependencies.void
process()
Process the input stream to create the list of dependencies.protected void
processPackageEntry(javax.json.JsonObject pkg)
-
-
-
Method Detail
-
process
public void process()
Process the input stream to create the list of dependencies.
-
processPackageEntry
protected void processPackageEntry(javax.json.JsonObject pkg)
-
getDependencies
public java.util.List<ComposerDependency> getDependencies()
Gets the list of dependencies.- Returns:
- the list of dependencies
-
-