Package org.biojava.nbio.core.util
Class FlatFileCache
java.lang.Object
org.biojava.nbio.core.util.FlatFileCache
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
Modifier and TypeMethodDescriptionstatic voidaddToCache(String key, File fileToCache) static voidclear()static InputStreamgetInputStream(String key) static intsize()
-
Method Details
-
addToCache
-
getInputStream
-
size
public static int size() -
clear
public static void clear()
-