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, generation
Fields inherited from class org.eclipse.osgi.storage.bundlefile.BundleFile
basefile
-
Constructor Summary
ConstructorDescriptionZipBundleFile
(File basefile, BundleInfo.Generation generation, MRUBundleFileList mruList, org.eclipse.osgi.internal.debug.Debug debug, boolean verify) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doClose()
Closes the bundle fileprotected InputStream
doGetInputStream
(ZipEntry entry) Gets the input stream for the specified entry.protected void
doOpen()
Opens the bundle fileprotected BundleEntry
Finds the bundle entry for the specified pathgetPaths()
protected void
Called after closing the bundle file.Methods inherited from class org.eclipse.osgi.storage.bundlefile.CloseableBundleFile
close, containsDir, getEntry, getEntryPaths, getFile, getInputStream, lockOpen, open, releaseOpen
Methods 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:CloseableBundleFile
Opens the bundle file- Specified by:
doOpen
in classCloseableBundleFile<ZipEntry>
- Throws:
IOException
- if an error occurs
-
findEntry
Description copied from class:CloseableBundleFile
Finds the bundle entry for the specified path- Specified by:
findEntry
in classCloseableBundleFile<ZipEntry>
- Parameters:
path
- the path of the entry to find- Returns:
- the entry or
null
if no entry exists
-
doClose
Description copied from class:CloseableBundleFile
Closes the bundle file- Specified by:
doClose
in classCloseableBundleFile<ZipEntry>
- Throws:
IOException
- if an error occurs closing
-
postClose
protected void postClose()Description copied from class:CloseableBundleFile
Called after closing the bundle file.- Specified by:
postClose
in classCloseableBundleFile<ZipEntry>
-
doGetInputStream
Description copied from class:CloseableBundleFile
Gets the input stream for the specified entry.- Specified by:
doGetInputStream
in 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:
getPaths
in classCloseableBundleFile<ZipEntry>
-