|
||||||||||
| 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(File basefile)
Constructs a DirBundleFile |
|
| Method Summary | |
|---|---|
void |
close()
Closes the BundleFile. |
boolean |
containsDir(String dir)
Determines if any BundleEntries exist in the given directory path. |
BundleEntry |
getEntry(String path)
Locates a file name in this bundle and returns a BundleEntry object |
Enumeration<String> |
getEntryPaths(String path)
Allows to access the entries of the bundle. |
File |
getFile(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 |
|---|
fixTrailingSlash, getBaseFile, getResourceURL, getResourceURL, getResourceURL, setPermissions, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DirBundleFile(File basefile)
throws IOException
basefile - the base file
IOException| Method Detail |
|---|
public File getFile(String path,
boolean nativeCode)
BundleFile
getFile in class BundleFilepath - The path to the entry to locate a File for.nativeCode - true if the path is native code.
public BundleEntry getEntry(String path)
BundleFile
getEntry in class BundleFilepath - path of the entry to locate in the bundle
public boolean containsDir(String dir)
BundleFile
containsDir in class BundleFiledir - The directory path to check existence of.
public Enumeration<String> getEntryPaths(String path)
BundleFile
getEntryPaths in class BundleFilepath - path of the entry to locate in the bundle
public void close()
BundleFile
close in class BundleFilepublic void open()
BundleFile
open in class BundleFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||