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, toString
public DirZipBundleEntry(ZipBundleFile bundleFile, String name)
public InputStream getInputStream() throws IOException
BundleEntry
getInputStream
in class BundleEntry
IOException
public long getSize()
BundleEntry
getSize
in class BundleEntry
public 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 URL getLocalURL()
BundleEntry
getLocalURL
in class BundleEntry
public URL getFileURL()
BundleEntry
getFileURL
in class BundleEntry
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.