|
||||||||||
| 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.ZipBundleFile
public class ZipBundleFile
A BundleFile that uses a ZipFile as it base file.
| Field Summary | |
|---|---|
protected BaseData |
bundledata
The bundle data |
protected boolean |
closed
The closed flag |
protected ZipFile |
zipFile
The zip file |
| Fields inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleFile |
|---|
basefile, PROP_SETPERMS_CMD |
| Constructor Summary | |
|---|---|
ZipBundleFile(File basefile,
BaseData bundledata)
Constructs a ZipBundle File |
|
ZipBundleFile(File basefile,
BaseData bundledata,
MRUBundleFileList mruList)
|
|
| Method Summary | |
|---|---|
protected ZipFile |
basicOpen()
Opens the ZipFile for this bundle file |
protected boolean |
checkedOpen()
Checks if the zip file is open |
void |
close()
Closes the BundleFile. |
boolean |
containsDir(String dir)
Determines if any BundleEntries exist in the given directory path. |
protected File |
extractDirectory(String dirName)
Extracts a directory and all sub content to disk |
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. |
protected File |
getExtractFile(String entryName)
|
File |
getFile(String entry,
boolean nativeCode)
Returns a File for the bundle entry specified by the path. |
protected ZipEntry |
getZipEntry(String path)
Returns a ZipEntry for the bundle file. |
protected ZipFile |
getZipFile()
Returns an open ZipFile for this bundle file. |
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 |
| Field Detail |
|---|
protected BaseData bundledata
protected volatile ZipFile zipFile
protected volatile boolean closed
| Constructor Detail |
|---|
public ZipBundleFile(File basefile,
BaseData bundledata)
throws IOException
basefile - the base filebundledata - the bundle data
IOException
public ZipBundleFile(File basefile,
BaseData bundledata,
MRUBundleFileList mruList)
throws IOException
IOException| Method Detail |
|---|
protected boolean checkedOpen()
protected ZipFile basicOpen()
throws IOException
IOException
protected ZipFile getZipFile()
throws IOException
IOExceptionprotected ZipEntry getZipEntry(String path)
path - the path to an entry
protected File extractDirectory(String dirName)
dirName - the directory name to extract
null is returned if the directory to extract does
not exist or if content extraction is not supported.protected File getExtractFile(String entryName)
public File getFile(String entry,
boolean nativeCode)
BundleFile
getFile in class BundleFileentry - The path to the entry to locate a File for.nativeCode - true if the path is native code.
public boolean containsDir(String dir)
BundleFile
containsDir in class BundleFiledir - The directory path to check existence of.
public BundleEntry getEntry(String path)
BundleFile
getEntry in class BundleFilepath - path of the entry to locate in the bundle
public Enumeration<String> getEntryPaths(String path)
BundleFile
getEntryPaths in class BundleFilepath - path of the entry to locate in the bundle
public void close()
throws IOException
BundleFile
close in class BundleFileIOException - if any error occurs.public void open()
BundleFile
open in class BundleFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||