Class 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)  
      • Methods inherited from class java.lang.Object

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

      • ComposerLockParser

        public ComposerLockParser​(java.io.InputStream inputStream,
                                  boolean skipDev)
        Creates a ComposerLockParser from a JsonReader and an InputStream.
        Parameters:
        inputStream - the InputStream to parse
    • 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