public class ZipCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ZipCache.Archive |
static class |
ZipCache.ArchiveFile |
static class |
ZipCache.ArchiveStream |
static class |
ZipCache.ArchiveURL |
| Constructor and Description |
|---|
ZipCache() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkZipFile(Pathname name) |
static void |
disable() |
static ZipCache.Archive |
getArchive(JarPathname jar) |
static ZipCache.Archive |
getArchiveFile(JarPathname jar) |
static ZipCache.Archive |
getArchiveURL(JarPathname jar) |
static java.util.LinkedHashMap<JarPathname,java.util.zip.ZipEntry> |
getEntries(JarPathname jar) |
static java.util.Iterator<java.util.Map.Entry<JarPathname,java.util.zip.ZipEntry>> |
getEntriesIterator(JarPathname jar) |
static java.util.zip.ZipEntry |
getEntry(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName) |
static java.util.zip.ZipEntry |
getEntry(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName,
boolean errorOnFailure) |
static java.io.InputStream |
getEntryAsInputStream(JarPathname archiveEntry) |
static java.io.InputStream |
getEntryAsInputStream(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName) |
static java.util.zip.ZipInputStream |
getZipInputStream(java.util.zip.ZipFile zipfile,
java.lang.String entryName) |
static java.util.zip.ZipInputStream |
getZipInputStream(java.util.zip.ZipFile zipfile,
java.lang.String entryName,
boolean errorOnFailure) |
static java.io.ByteArrayOutputStream |
readEntry(java.util.zip.ZipInputStream stream) |
static boolean |
remove(JarPathname p) |
static boolean |
remove(Pathname pathname) |
public static final boolean checkZipFile(Pathname name)
public static java.util.zip.ZipInputStream getZipInputStream(java.util.zip.ZipFile zipfile,
java.lang.String entryName)
public static java.util.zip.ZipInputStream getZipInputStream(java.util.zip.ZipFile zipfile,
java.lang.String entryName,
boolean errorOnFailure)
public static java.io.ByteArrayOutputStream readEntry(java.util.zip.ZipInputStream stream)
public static java.util.zip.ZipEntry getEntry(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName)
public static java.util.zip.ZipEntry getEntry(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName,
boolean errorOnFailure)
public static java.io.InputStream getEntryAsInputStream(java.util.zip.ZipInputStream zipInputStream,
java.lang.String entryName)
public static java.io.InputStream getEntryAsInputStream(JarPathname archiveEntry)
public static void disable()
public static java.util.LinkedHashMap<JarPathname,java.util.zip.ZipEntry> getEntries(JarPathname jar)
public static java.util.Iterator<java.util.Map.Entry<JarPathname,java.util.zip.ZipEntry>> getEntriesIterator(JarPathname jar)
public static ZipCache.Archive getArchive(JarPathname jar)
public static ZipCache.Archive getArchiveURL(JarPathname jar)
public static ZipCache.Archive getArchiveFile(JarPathname jar)
public static boolean remove(Pathname pathname)
public static boolean remove(JarPathname p)