public class ManifestGenerationExtension
extends java.lang.Object
ZFile that will generate a manifest. The extension will register
automatically with the ZFile.
Creating this extension will ensure a manifest for the zip exists. This extension will generate a manifest if one does not exist and will update an existing manifest, if one does exist. The extension will also provide access to the manifest so that others may update the manifest.
Apart from standard manifest elements, this extension does not handle any particular manifest features such as signing or adding custom attributes. It simply generates a plain manifest and provides infrastructure so that other extensions can add data in the manifest.
The manifest itself will only be written when the ZFileExtension.beforeUpdate()
notification is received, meaning all manifest manipulation is done in-memory.
| Constructor and Description |
|---|
ManifestGenerationExtension(java.lang.String builtBy,
java.lang.String createdBy)
Creates a new extension.
|
| Modifier and Type | Method and Description |
|---|---|
void |
register(ZFile zFile)
Registers the extension with the
ZFile provided in the constructor. |
public ManifestGenerationExtension(@Nonnull
java.lang.String builtBy,
@Nonnull
java.lang.String createdBy)
ZFile. Until register(ZFile) is invoked, this extension is not used.builtBy - who built the manifest?createdBy - who created the manifest?