Package com.artipie.composer.http
Class Archive.Zip
- java.lang.Object
-
- com.artipie.composer.http.Archive.Zip
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.artipie.composer.http.Archive
Archive.Name, Archive.Zip
-
-
Constructor Summary
Constructors Constructor Description Zip(Archive.Name name)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionStage<javax.json.JsonObject>
composerFrom(com.artipie.asto.Content archive)
Obtains composer json file from archive.Archive.Name
name()
Obtains archive name.CompletionStage<com.artipie.asto.Content>
replaceComposerWith(com.artipie.asto.Content archive, byte[] composer)
Replaces composer json file in existing archive with new one.
-
-
-
Constructor Detail
-
Zip
public Zip(Archive.Name name)
Ctor.- Parameters:
name
- Name of archive file
-
-
Method Detail
-
composerFrom
public CompletionStage<javax.json.JsonObject> composerFrom(com.artipie.asto.Content archive)
Description copied from interface:Archive
Obtains composer json file from archive.- Specified by:
composerFrom
in interfaceArchive
- Parameters:
archive
- Content of archive file- Returns:
- Composer json file from archive.
-
name
public Archive.Name name()
Description copied from interface:Archive
Obtains archive name.
-
replaceComposerWith
public CompletionStage<com.artipie.asto.Content> replaceComposerWith(com.artipie.asto.Content archive, byte[] composer)
Description copied from interface:Archive
Replaces composer json file in existing archive with new one.- Specified by:
replaceComposerWith
in interfaceArchive
- Parameters:
archive
- Archive with existing composer jsoncomposer
- Composer json file that we will change the existing one to- Returns:
- Archive with replaced composer json file
-
-