|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.baseadaptor.bundlefile.BundleEntry
org.eclipse.osgi.baseadaptor.bundlefile.DirZipBundleEntry
public class 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.baseadaptor.bundlefile.BundleEntry |
---|
BUF_SIZE |
Constructor Summary | |
---|---|
DirZipBundleEntry(ZipBundleFile bundleFile,
java.lang.String name)
|
Method Summary | |
---|---|
java.net.URL |
getFileURL()
Get a URL to the content of the bundle entry that uses the file: protocol. |
java.io.InputStream |
getInputStream()
Return an InputStream for the entry. |
java.net.URL |
getLocalURL()
Get a URL to the bundle entry that uses a common protocol (i.e. file: jar: or http: etc.). |
java.lang.String |
getName()
Return the name of the entry. |
long |
getSize()
Return the size of the entry (uncompressed). |
long |
getTime()
Get the modification time for this BundleEntry. |
Methods inherited from class org.eclipse.osgi.baseadaptor.bundlefile.BundleEntry |
---|
getBytes, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DirZipBundleEntry(ZipBundleFile bundleFile, java.lang.String name)
Method Detail |
---|
public java.io.InputStream getInputStream() throws java.io.IOException
BundleEntry
getInputStream
in class BundleEntry
java.io.IOException
- If an error occurs reading the bundle.public long getSize()
BundleEntry
getSize
in class BundleEntry
public java.lang.String getName()
BundleEntry
getName
in class BundleEntry
public long getTime()
BundleEntry
If the modification time has not been set, this method will return -1.
getTime
in class BundleEntry
public java.net.URL getLocalURL()
BundleEntry
getLocalURL
in class BundleEntry
public java.net.URL getFileURL()
BundleEntry
getFileURL
in class BundleEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |