Package org.armedbear.lisp
Class ZipCache
java.lang.Object
org.armedbear.lisp.ZipCache
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 ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
checkZipFile
(Pathname name) static void
disable()
static ZipCache.Archive
getArchive
(JarPathname jar) static ZipCache.Archive
static ZipCache.Archive
getArchiveURL
(JarPathname jar) static LinkedHashMap
<JarPathname, ZipEntry> getEntries
(JarPathname jar) static Iterator
<Map.Entry<JarPathname, ZipEntry>> static ZipEntry
getEntry
(ZipInputStream zipInputStream, String entryName) static ZipEntry
getEntry
(ZipInputStream zipInputStream, String entryName, boolean errorOnFailure) static InputStream
getEntryAsInputStream
(ZipInputStream zipInputStream, String entryName) static InputStream
getEntryAsInputStream
(JarPathname archiveEntry) static ZipInputStream
getZipInputStream
(ZipFile zipfile, String entryName) static ZipInputStream
getZipInputStream
(ZipFile zipfile, String entryName, boolean errorOnFailure) static ByteArrayOutputStream
readEntry
(ZipInputStream stream) static boolean
static boolean
-
Constructor Details
-
ZipCache
public ZipCache()
-
-
Method Details
-
checkZipFile
-
getZipInputStream
-
getZipInputStream
public static ZipInputStream getZipInputStream(ZipFile zipfile, String entryName, boolean errorOnFailure) -
readEntry
-
getEntry
-
getEntry
public static ZipEntry getEntry(ZipInputStream zipInputStream, String entryName, boolean errorOnFailure) -
getEntryAsInputStream
-
getEntryAsInputStream
-
disable
public static void disable() -
getEntries
-
getEntriesIterator
-
getArchive
-
getArchiveURL
-
getArchiveFile
-
remove
-
remove
-