Package org.armedbear.lisp
Class ZipCache
- java.lang.Object
-
- org.armedbear.lisp.ZipCache
-
public class ZipCache extends java.lang.ObjectA 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 classZipCache.Archivestatic classZipCache.ArchiveFilestatic classZipCache.ArchiveStreamstatic classZipCache.ArchiveURL
-
Constructor Summary
Constructors Constructor Description ZipCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancheckZipFile(Pathname name)static voiddisable()static ZipCache.ArchivegetArchive(JarPathname jar)static ZipCache.ArchivegetArchiveFile(JarPathname jar)static ZipCache.ArchivegetArchiveURL(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.ZipEntrygetEntry(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName)static java.util.zip.ZipEntrygetEntry(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName, boolean errorOnFailure)static java.io.InputStreamgetEntryAsInputStream(java.util.zip.ZipInputStream zipInputStream, java.lang.String entryName)static java.io.InputStreamgetEntryAsInputStream(JarPathname archiveEntry)static java.util.zip.ZipInputStreamgetZipInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName)static java.util.zip.ZipInputStreamgetZipInputStream(java.util.zip.ZipFile zipfile, java.lang.String entryName, boolean errorOnFailure)static java.io.ByteArrayOutputStreamreadEntry(java.util.zip.ZipInputStream stream)static booleanremove(JarPathname p)static booleanremove(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)
-
-