public static interface Transformer.ManifestEntry extends Transformer.Entry
ManifestEntry represents a manifest entry in a JAR file.STABLE_TIMESTAMP| Modifier and Type | Method and Description |
|---|---|
static Transformer.ManifestEntry |
create(long time,
byte[] data)
Creates a default manifest entry.
|
static Transformer.ManifestEntry |
create(long time,
java.util.jar.Manifest manifest)
Creates a default manifest entry.
|
java.util.jar.Manifest |
getManifest()
Gets the parsed Manifest.
|
java.util.jar.Manifest getManifest()
Transformer.Entry.getData() is called later,
since the entry cannot detect the changed data. Always construct a new entry if you modify the manifest.static Transformer.ManifestEntry create(long time, byte[] data)
META-INF/MANIFEST.MF.time - the last modification timedata - the raw manifest bytesstatic Transformer.ManifestEntry create(long time, java.util.jar.Manifest manifest)
META-INF/MANIFEST.MF.time - the last modification timemanifest - the manifest content