|
||||||||||
| 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.BundleFileWrapperChain
public class BundleFileWrapperChain
Used to chain the BundleFile objects returned from BundleFileWrapperFactoryHook.
This class is useful for traversing the chain of wrapped bundle files.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
|---|
basefile, PROP_SETPERMS_CMD |
| Constructor Summary | |
|---|---|
BundleFileWrapperChain(BundleFile wrapped,
BundleFileWrapperChain next)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the BundleFile. |
boolean |
containsDir(java.lang.String dir)
Determines if any BundleEntries exist in the given directory path. |
java.io.File |
getBaseFile()
Returns the base file for this BundleFile |
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. |
BundleFileWrapperChain |
getNext()
The next WrapperBundleFile in the chain. |
java.net.URL |
getResourceURL(java.lang.String path,
BaseData hostData,
int index)
Returns a URL to access the contents of the entry specified by the path |
BundleFile |
getWrapped()
The BundleFile that is wrapped |
void |
open()
Opens the BundleFiles. |
java.lang.String |
toString()
|
| Methods inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
|---|
fixTrailingSlash, getResourceURL, getResourceURL, setPermissions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BundleFileWrapperChain(BundleFile wrapped,
BundleFileWrapperChain next)
| Method Detail |
|---|
public void close()
throws java.io.IOException
BundleFile
close in class BundleFilejava.io.IOException - if any error occurs.public boolean containsDir(java.lang.String dir)
BundleFile
containsDir in class BundleFiledir - The directory path to check existence of.
public BundleEntry getEntry(java.lang.String path)
BundleFile
getEntry in class BundleFilepath - path of the entry to locate in the bundle
public java.util.Enumeration getEntryPaths(java.lang.String path)
BundleFile
getEntryPaths in class BundleFilepath - path of the entry to locate in the bundle
public java.io.File getFile(java.lang.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 void open()
throws java.io.IOException
BundleFile
open in class BundleFilejava.io.IOException - if any error occurs.public java.io.File getBaseFile()
BundleFile
getBaseFile in class BundleFile
public java.net.URL getResourceURL(java.lang.String path,
BaseData hostData,
int index)
BundleFile
getResourceURL in class BundleFilepath - the path to the resourcehostData - the host BaseDataindex - the resource index
public java.lang.String toString()
toString in class BundleFilepublic BundleFile getWrapped()
public BundleFileWrapperChain getNext()
null value
is returned if this is the end of the chain.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||