Package org.apache.aries.util.manifest
Class BundleManifest
java.lang.Object
org.apache.aries.util.manifest.BundleManifest
Entity class to retrieve and represent a bundle manifest (valid or invalid).
-
Constructor Summary
ConstructorsConstructorDescriptionBundleManifest(InputStream manifestIs) Create a BundleManifest object from the InputStream to the manifest (not to the bundle)Create a BundleManifest object from a common Manifest object -
Method Summary
Modifier and TypeMethodDescriptionstatic BundleManifestfromBundle(File f) Retrieve a bundle manifest from the given jar file, which can be exploded or compressedstatic BundleManifestRead a manifest from a jar input stream.static BundleManifestfromBundle(IFile f) Retrieve a BundleManifest from the given jar filebooleanisValid()
-
Constructor Details
-
BundleManifest
Create a BundleManifest object from the InputStream to the manifest (not to the bundle)- Parameters:
manifestIs-- Throws:
IOException
-
BundleManifest
Create a BundleManifest object from a common Manifest object- Parameters:
m-
-
-
Method Details
-
fromBundle
Read a manifest from a jar input stream. This will find the manifest even if it is NOT the first file in the archive.- Parameters:
is- the jar input stream- Returns:
- the bundle manifest
-
fromBundle
Retrieve a BundleManifest from the given jar file- Parameters:
f- the bundle jar file- Returns:
- the bundle manifest
-
fromBundle
Retrieve a bundle manifest from the given jar file, which can be exploded or compressed- Parameters:
f- the bundle jar file- Returns:
- the bundle manifest
-
getSymbolicName
-
getVersion
-
getManifestVersion
-
getRawAttributes
-
getRawManifest
-
isValid
public boolean isValid()
-