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 classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final booleancheckZipFile(Pathname name) static voiddisable()static ZipCache.ArchivegetArchive(JarPathname jar) static ZipCache.Archivestatic ZipCache.ArchivegetArchiveURL(JarPathname jar) static LinkedHashMap<JarPathname, ZipEntry> getEntries(JarPathname jar) static Iterator<Map.Entry<JarPathname, ZipEntry>> static ZipEntrygetEntry(ZipInputStream zipInputStream, String entryName) static ZipEntrygetEntry(ZipInputStream zipInputStream, String entryName, boolean errorOnFailure) static InputStreamgetEntryAsInputStream(ZipInputStream zipInputStream, String entryName) static InputStreamgetEntryAsInputStream(JarPathname archiveEntry) static ZipInputStreamgetZipInputStream(ZipFile zipfile, String entryName) static ZipInputStreamgetZipInputStream(ZipFile zipfile, String entryName, boolean errorOnFailure) static ByteArrayOutputStreamreadEntry(ZipInputStream stream) static booleanstatic 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
-