Class FlatFileCache


  • public class FlatFileCache
    extends java.lang.Object
    Provides a cache for storing multiple small files in memory. Can be used to e.g cache gzip compressed PDB files for avoiding disk IO bottlenecks. Note this is just a wrapper for the singleton cache.
    Author:
    Andreas Prlic.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addToCache​(java.lang.String key, java.io.File fileToCache)  
      static void clear()  
      static java.io.InputStream getInputStream​(java.lang.String key)  
      static int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addToCache

        public static void addToCache​(java.lang.String key,
                                      java.io.File fileToCache)
      • getInputStream

        public static java.io.InputStream getInputStream​(java.lang.String key)
      • size

        public static int size()
      • clear

        public static void clear()