Package org.biojava.utils.io
Class FlatFileCache
java.lang.Object
org.biojava.utils.io.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.
- Author:
- Andreas Prlic.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToCache
(String key, File fileToCache) void
clear()
static void
destroy()
static InputStream
getInputStream
(String key) static FlatFileCache
int
size()
-
Method Details
-
getInstance
-
addToCache
-
getInputStream
-
size
-
clear
-
destroy
-