|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.baseadaptor.bundlefile.BundleFile
org.eclipse.osgi.baseadaptor.bundlefile.NestedDirBundleFile
public class NestedDirBundleFile
A NestedDirBundleFile uses another BundleFile as its source but accesses all of its resources relative to a nested directory within the other BundleFile object. This is used to support zipped bundles that use a Bundle-ClassPath with an nested directory specified.
For Example:
Bundle-ClassPath: nested.jar,nesteddir/
Field Summary |
---|
Fields inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
---|
basefile, PROP_SETPERMS_CMD |
Constructor Summary | |
---|---|
NestedDirBundleFile(BundleFile baseBundlefile,
java.lang.String cp)
Constructs a NestedDirBundleFile |
Method Summary | |
---|---|
void |
close()
Closes the BundleFile. |
boolean |
containsDir(java.lang.String dir)
Determines if any BundleEntries exist in the given directory path. |
BundleEntry |
getEntry(java.lang.String path)
Locates a file name in this bundle and returns a BundleEntry object |
java.util.Enumeration |
getEntryPaths(java.lang.String path)
Allows to access the entries of the bundle. |
java.io.File |
getFile(java.lang.String entry,
boolean nativeCode)
Returns a File for the bundle entry specified by the path. |
void |
open()
Opens the BundleFiles. |
Methods inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
---|
getBaseFile, getResourceURL, getResourceURL, setPermissions |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NestedDirBundleFile(BundleFile baseBundlefile, java.lang.String cp)
baseBundlefile
- the base bundle filecp
- Method Detail |
---|
public void close()
BundleFile
close
in class BundleFile
public BundleEntry getEntry(java.lang.String path)
BundleFile
getEntry
in class BundleFile
path
- path of the entry to locate in the bundle
public boolean containsDir(java.lang.String dir)
BundleFile
containsDir
in class BundleFile
dir
- The directory path to check existence of.
public java.util.Enumeration getEntryPaths(java.lang.String path)
BundleFile
getEntryPaths
in class BundleFile
path
- path of the entry to locate in the bundle
public java.io.File getFile(java.lang.String entry, boolean nativeCode)
BundleFile
getFile
in class BundleFile
entry
- The path to the entry to locate a File for.nativeCode
- true if the path is native code.
public void open() throws java.io.IOException
BundleFile
open
in class BundleFile
java.io.IOException
- if any error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |