Class TgzArchive

java.lang.Object
com.artipie.npm.TgzArchive

public final class TgzArchive extends Object
A .tgz archive.
Since:
0.1
  • Constructor Details

    • TgzArchive

      public TgzArchive(String bitstring)
      Ctor.
      Parameters:
      bitstring - The archive.
    • TgzArchive

      public TgzArchive(String bitstring, boolean encoded)
      Ctor.
      Parameters:
      bitstring - The archive
      encoded - Is Base64 encoded?
  • Method Details

    • saveToFile

      public io.reactivex.Completable saveToFile(Path path)
      Save the archive to a file.
      Parameters:
      path - The path to save .tgz file at.
      Returns:
      Completion or error signal.
    • bytes

      public byte[] bytes()
      Obtain an archive in form of byte array.
      Returns:
      Archive bytes
    • packageJson

      public javax.json.JsonObject packageJson()
      Obtains package.json from archive.
      Returns:
      Json object from package.json file from archive.