public interface BundleReader
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getEntry(java.io.File bundleLocation,
java.lang.String path)
Returns bundle entry with given path or
null if no such entry exists. |
OsgiManifest |
loadManifest(java.io.File bundleLocation)
Load and cache OSGi manifest from path META-INF/MANIFEST.MF under the given location.
|
OsgiManifest loadManifest(java.io.File bundleLocation) throws OsgiManifestParserException, InvalidOSGiManifestException
bundleLocation - can be either a directory or a jar filenullOsgiManifestParserException - if no valid MANIFEST is found in bundleLocation or it cannot be converted from
plugin.xml/fragment.xml.InvalidOSGiManifestException - if valid MANIFEST is found but it does not have valid mandatory OSGi headersjava.io.File getEntry(java.io.File bundleLocation,
java.lang.String path)
null if no such entry exists. If bundle
is a jar, the entry will be extracted into a cached location.bundleLocation - can be either a directory or a jar filepath - path relative to the bundle root. Paths starting with "external:" are ignored