Class 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.
    • Constructor Detail

      • ZipCache

        public ZipCache()
    • 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)
      • remove

        public static boolean remove​(Pathname pathname)
      • remove

        public static boolean remove​(JarPathname p)