Class DirZipBundleEntry
java.lang.Object
org.eclipse.osgi.storage.bundlefile.BundleEntry
org.eclipse.osgi.storage.bundlefile.DirZipBundleEntry
Represents a directory entry in a ZipBundleFile. This object is used to
reference a directory entry in a ZipBundleFile when the directory entries are
not included in the zip file.
-
Field Summary
Fields inherited from class org.eclipse.osgi.storage.bundlefile.BundleEntry
BUF_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a URL to the content of the bundle entry that uses the file: protocol.Return an InputStream for the entry.Get a URL to the bundle entry that uses a common protocol (i.e. file: jar: or http: etc.).getName()Return the name of the entry.longgetSize()Return the size of the entry (uncompressed).longgetTime()Get the modification time for this BundleEntry.Methods inherited from class org.eclipse.osgi.storage.bundlefile.BundleEntry
getBytes, toString
-
Constructor Details
-
DirZipBundleEntry
-
-
Method Details
-
getInputStream
Description copied from class:BundleEntryReturn an InputStream for the entry.- Specified by:
getInputStreamin classBundleEntry- Returns:
- InputStream for the entry.
- Throws:
IOException- If an error occurs reading the bundle.
-
getSize
public long getSize()Description copied from class:BundleEntryReturn the size of the entry (uncompressed).- Specified by:
getSizein classBundleEntry- Returns:
- size of entry.
-
getName
Description copied from class:BundleEntryReturn the name of the entry.- Specified by:
getNamein classBundleEntry- Returns:
- name of entry.
-
getTime
public long getTime()Description copied from class:BundleEntryGet the modification time for this BundleEntry.If the modification time has not been set, this method will return
-1.- Specified by:
getTimein classBundleEntry- Returns:
- last modification time.
-
getLocalURL
Description copied from class:BundleEntryGet a URL to the bundle entry that uses a common protocol (i.e. file: jar: or http: etc.).- Specified by:
getLocalURLin classBundleEntry- Returns:
- a URL to the bundle entry that uses a common protocol
-
getFileURL
Description copied from class:BundleEntryGet a URL to the content of the bundle entry that uses the file: protocol. The content of the bundle entry may be downloaded or extracted to the local file system in order to create a file: URL.- Specified by:
getFileURLin classBundleEntry- Returns:
- a URL to the content of the bundle entry that uses the file: protocol
-