|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.osgi.baseadaptor.bundlefile.BundleEntry
public abstract class BundleEntry
A BundleEntry represents one entry of a BundleFile.
Clients may extend this class.
Field Summary | |
---|---|
protected static int |
BUF_SIZE
|
Constructor Summary | |
---|---|
BundleEntry()
|
Method Summary | |
---|---|
byte[] |
getBytes()
Used for class loading. |
abstract java.net.URL |
getFileURL()
Get a URL to the content of the bundle entry that uses the file: protocol. |
abstract java.io.InputStream |
getInputStream()
Return an InputStream for the entry. |
abstract java.net.URL |
getLocalURL()
Get a URL to the bundle entry that uses a common protocol (i.e. file: jar: or http: etc.). |
abstract java.lang.String |
getName()
Return the name of the entry. |
abstract long |
getSize()
Return the size of the entry (uncompressed). |
abstract long |
getTime()
Get the modification time for this BundleEntry. |
java.lang.String |
toString()
Return the name of this BundleEntry by calling getName(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int BUF_SIZE
Constructor Detail |
---|
public BundleEntry()
Method Detail |
---|
public abstract java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
- If an error occurs reading the bundle.public abstract long getSize()
public abstract java.lang.String getName()
public abstract long getTime()
If the modification time has not been set, this method will return -1.
public abstract java.net.URL getLocalURL()
public abstract java.net.URL getFileURL()
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] getBytes() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |