public class DirZipBundleEntry extends BundleEntry
BUF_SIZE| Constructor and Description |
|---|
DirZipBundleEntry(ZipBundleFile bundleFile,
String name) |
| Modifier and Type | Method and Description |
|---|---|
URL |
getFileURL()
Get a URL to the content of the bundle entry that uses the file: protocol.
|
InputStream |
getInputStream()
Return an InputStream for the entry.
|
URL |
getLocalURL()
Get a URL to the bundle entry that uses a common protocol (i.e.
|
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.
|
getBytes, toStringpublic DirZipBundleEntry(ZipBundleFile bundleFile, String name)
public InputStream getInputStream() throws IOException
BundleEntrygetInputStream in class BundleEntryIOExceptionpublic long getSize()
BundleEntrygetSize in class BundleEntrypublic String getName()
BundleEntrygetName in class BundleEntrypublic long getTime()
BundleEntryIf the modification time has not been set, this method will return -1.
getTime in class BundleEntrypublic URL getLocalURL()
BundleEntrygetLocalURL in class BundleEntrypublic URL getFileURL()
BundleEntrygetFileURL in class BundleEntryCopyright © 2007–2016 The Apache Software Foundation. All rights reserved.