Package org.armedbear.lisp
Class ZipCache
- java.lang.Object
-
- org.armedbear.lisp.ZipCache
-
public class ZipCache extends java.lang.Object
A cache for all zip/jar file access by JarPathname that uses the last modified time of the cached resource. If you run into problems with caching, use (SYS::DISABLE-ZIP-CACHE). Once disabled, the caching cannot be re-enabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ZipCache.Archive
static class
ZipCache.ArchiveFile
static class
ZipCache.ArchiveStream
static class
ZipCache.ArchiveURL
-
Constructor Summary
Constructors Constructor Description ZipCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName)
static java.io.InputStream
getEntryAsInputStream(JarPathname archiveEntry)
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)
-
-
-
Method Detail
-
checkZipFile
public static final boolean checkZipFile(Pathname name)
-
getZipInputStream
public static java.util.zip.ZipInputStream getZipInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName)
-
getZipInputStream
public static java.util.zip.ZipInputStream getZipInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName, boolean errorOnFailure)
-
readEntry
public static java.io.ByteArrayOutputStream readEntry(java.util.zip.ZipInputStream stream)
-
getEntry
public static java.util.zip.ZipEntry getEntry(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName)
-
getEntry
public static java.util.zip.ZipEntry getEntry(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName, boolean errorOnFailure)
-
getEntryAsInputStream
public static java.io.InputStream getEntryAsInputStream(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName)
-
getEntryAsInputStream
public static java.io.InputStream getEntryAsInputStream(JarPathname archiveEntry)
-
disable
public static void disable()
-
getEntries
public static java.util.LinkedHashMap<JarPathname,java.util.zip.ZipEntry> getEntries(JarPathname jar)
-
getEntriesIterator
public static java.util.Iterator<java.util.Map.Entry<JarPathname,java.util.zip.ZipEntry>> getEntriesIterator(JarPathname jar)
-
getArchive
public static ZipCache.Archive getArchive(JarPathname jar)
-
getArchiveURL
public static ZipCache.Archive getArchiveURL(JarPathname jar)
-
getArchiveFile
public static ZipCache.Archive getArchiveFile(JarPathname jar)
-
remove
public static boolean remove(Pathname pathname)
-
remove
public static boolean remove(JarPathname p)
-
-