com.trendrr.oss
Class FileCache

java.lang.Object
  extended by com.trendrr.oss.FileCache

public class FileCache
extends java.lang.Object

A threadsafe file cache.

Author:
Dustin Norlander

Constructor Summary
FileCache()
           
 
Method Summary
 byte[] getFileBytes(java.lang.String filename, long timeoutPeriod)
          loads a file from the cache.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileCache

public FileCache()
Method Detail

getFileBytes

public byte[] getFileBytes(java.lang.String filename,
                           long timeoutPeriod)
loads a file from the cache. All exceptions are logged as warnings, and null is returned.

Parameters:
filename - filename to load
timeoutPeriod - number of milliseconds between reload of the file.
Returns: