Interface Archive

All Known Implementing Classes:
Archive.Zip

public interface Archive
Interface for working with archive file. For example, obtaining composer json file from archive.
  • Method Details

    • composerFrom

      CompletionStage<javax.json.JsonObject> composerFrom(Content archive)
      Obtains composer json file from archive.
      Parameters:
      archive - Content of archive file
      Returns:
      Composer json file from archive.
    • replaceComposerWith

      CompletionStage<Content> replaceComposerWith(Content archive, byte[] composer)
      Replaces composer json file in existing archive with new one.
      Parameters:
      archive - Archive with existing composer json
      composer - Composer json file that we will change the existing one to
      Returns:
      Archive with replaced composer json file
    • name

      Archive.Name name()
      Obtains archive name.
      Returns:
      Archive name.