public abstract class BundleEntry extends Object
Clients may extend this class.
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BUF_SIZE |
| Constructor and Description |
|---|
BundleEntry() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Used for class loading.
|
abstract URL |
getFileURL()
Get a URL to the content of the bundle entry that uses the file: protocol.
|
abstract InputStream |
getInputStream()
Return an InputStream for the entry.
|
abstract URL |
getLocalURL()
Get a URL to the bundle entry that uses a common protocol (i.e.
|
abstract 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.
|
String |
toString()
Return the name of this BundleEntry by calling getName().
|
protected static final int BUF_SIZE
public abstract InputStream getInputStream() throws IOException
IOException - If an error occurs reading the bundle.public abstract long getSize()
public abstract String getName()
public abstract long getTime()
If the modification time has not been set, this method will return -1.
public abstract URL getLocalURL()
public abstract URL getFileURL()
public String toString()
public byte[] getBytes()
throws IOException
IOExceptionCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.