Class ZipBundleFile
java.lang.Object
org.eclipse.osgi.storage.bundlefile.BundleFile
org.eclipse.osgi.storage.bundlefile.CloseableBundleFile<ZipEntry>
org.eclipse.osgi.storage.bundlefile.ZipBundleFile
A BundleFile that uses a ZipFile as it base file.
-
Field Summary
Fields inherited from class org.eclipse.osgi.storage.bundlefile.CloseableBundleFile
debug, generationFields inherited from class org.eclipse.osgi.storage.bundlefile.BundleFile
basefile -
Constructor Summary
ConstructorsConstructorDescriptionZipBundleFile(File basefile, BundleInfo.Generation generation, MRUBundleFileList mruList, org.eclipse.osgi.internal.debug.Debug debug, boolean verify) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoClose()Closes the bundle fileprotected InputStreamdoGetInputStream(ZipEntry entry) Gets the input stream for the specified entry.protected voiddoOpen()Opens the bundle fileprotected BundleEntryFinds the bundle entry for the specified pathgetPaths()protected voidCalled after closing the bundle file.Methods inherited from class org.eclipse.osgi.storage.bundlefile.CloseableBundleFile
close, containsDir, getEntry, getEntryPaths, getFile, getInputStream, lockOpen, open, releaseOpenMethods inherited from class org.eclipse.osgi.storage.bundlefile.BundleFile
createResourceURL, createURL, fixTrailingSlash, getBaseFile, getEntryPaths, getResourceURL, toString
-
Constructor Details
-
ZipBundleFile
public ZipBundleFile(File basefile, BundleInfo.Generation generation, MRUBundleFileList mruList, org.eclipse.osgi.internal.debug.Debug debug, boolean verify) throws IOException - Throws:
IOException
-
-
Method Details
-
doOpen
Description copied from class:CloseableBundleFileOpens the bundle file- Specified by:
doOpenin classCloseableBundleFile<ZipEntry>- Throws:
IOException- if an error occurs
-
findEntry
Description copied from class:CloseableBundleFileFinds the bundle entry for the specified path- Specified by:
findEntryin classCloseableBundleFile<ZipEntry>- Parameters:
path- the path of the entry to find- Returns:
- the entry or
nullif no entry exists
-
doClose
Description copied from class:CloseableBundleFileCloses the bundle file- Specified by:
doClosein classCloseableBundleFile<ZipEntry>- Throws:
IOException- if an error occurs closing
-
postClose
protected void postClose()Description copied from class:CloseableBundleFileCalled after closing the bundle file.- Specified by:
postClosein classCloseableBundleFile<ZipEntry>
-
doGetInputStream
Description copied from class:CloseableBundleFileGets the input stream for the specified entry.- Specified by:
doGetInputStreamin classCloseableBundleFile<ZipEntry>- Parameters:
entry- the entry to get the input stream for. The type is specified by the extending class.- Returns:
- the input steam for the entry
- Throws:
IOException- if an error occurs
-
getPaths
- Specified by:
getPathsin classCloseableBundleFile<ZipEntry>
-