Class FileCache
java.lang.Object
org.kopi.ebics.io.FileCache
A simple mean to cache created files.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FileCache
public FileCache(boolean isTraceEnabled) Constructs a newFileCacheobject- Parameters:
isTraceEnabled- is trace enabled?
-
-
Method Details
-
add
Cache a newjava.io.Filein the cache buffer- Parameters:
file- the file to cache- Returns:
- True if the file is cached
-
remove
Removes the givenjava.io.filefrom the cache.- Parameters:
filename- the file to remove- Returns:
- True if the file is removed
-
clear
public void clear()Clears the cache buffer -
setTraceEnabled
public void setTraceEnabled(boolean enabled) Sets the trace ability.- Parameters:
enabled- is trace enabled?
-