public class BundleManifest
extends java.lang.Object
Constructor and Description |
---|
BundleManifest(java.io.InputStream manifestIs)
Create a BundleManifest object from the InputStream to the manifest (not to the bundle)
|
BundleManifest(java.util.jar.Manifest m)
Create a BundleManifest object from a common Manifest object
|
Modifier and Type | Method and Description |
---|---|
static BundleManifest |
fromBundle(java.io.File f)
Retrieve a bundle manifest from the given jar file, which can be exploded or compressed
|
static BundleManifest |
fromBundle(IFile f)
Retrieve a BundleManifest from the given jar file
|
static BundleManifest |
fromBundle(java.io.InputStream is)
Read a manifest from a jar input stream.
|
java.lang.String |
getManifestVersion() |
java.util.jar.Attributes |
getRawAttributes() |
java.util.jar.Manifest |
getRawManifest() |
java.lang.String |
getSymbolicName() |
Version |
getVersion() |
boolean |
isValid() |
public BundleManifest(java.io.InputStream manifestIs) throws java.io.IOException
manifestIs
- java.io.IOException
public BundleManifest(java.util.jar.Manifest m)
m
- public static BundleManifest fromBundle(java.io.InputStream is)
is
- the jar input streampublic static BundleManifest fromBundle(IFile f)
f
- the bundle jar filepublic static BundleManifest fromBundle(java.io.File f)
f
- the bundle jar filepublic java.lang.String getSymbolicName()
public Version getVersion()
public java.lang.String getManifestVersion()
public java.util.jar.Attributes getRawAttributes()
public java.util.jar.Manifest getRawManifest()
public boolean isValid()
Copyright © 2010 - 2019 Adobe. All Rights Reserved