|
||||||||||
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.DirBundleFile
public class DirBundleFile
A BundleFile that uses a directory as its base file.
Field Summary |
---|
Fields inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
---|
basefile, PROP_SETPERMS_CMD |
Constructor Summary | |
---|---|
DirBundleFile(java.io.File basefile)
Constructs a DirBundleFile |
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 path,
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 DirBundleFile(java.io.File basefile) throws java.io.IOException
basefile
- the base file
java.io.IOException
Method Detail |
---|
public java.io.File getFile(java.lang.String path, boolean nativeCode)
BundleFile
getFile
in class BundleFile
path
- The path to the entry to locate a File for.nativeCode
- true if the path is native code.
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 void close()
BundleFile
close
in class BundleFile
public void open()
BundleFile
open
in class BundleFile
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |