Class FileCache

java.lang.Object
org.kopi.ebics.io.FileCache

public class FileCache extends Object
A simple mean to cache created files.
  • Constructor Details

    • FileCache

      public FileCache(boolean isTraceEnabled)
      Constructs a new FileCache object
      Parameters:
      isTraceEnabled - is trace enabled?
  • Method Details

    • add

      public boolean add(File file)
      Cache a new java.io.File in the cache buffer
      Parameters:
      file - the file to cache
      Returns:
      True if the file is cached
    • remove

      public boolean remove(String filename)
      Removes the given java.io.file from 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?