de.sciss.io
Class CacheManager

java.lang.Object
  extended by de.sciss.io.CacheManager
All Implemented Interfaces:
java.io.FilenameFilter

public class CacheManager
extends java.lang.Object
implements java.io.FilenameFilter

Version:
0.32, 25-Feb-08
Author:
Hanns Holger Rutz

Constructor Summary
CacheManager()
           
 
Method Summary
 boolean accept(java.io.File dir, java.lang.String name)
           
 void addFile(java.io.File f)
           
 java.io.File createCacheFileName(java.io.File reference)
           
protected  void debugDump()
           
 int getCapacity()
           
 javax.swing.Action getDebugDumpAction()
          Get an Action object that will dump the current cache status to the console.
 java.io.File getFolder()
           
 boolean isActive()
           
 void removeFile(java.io.File f)
           
 void setActive(boolean onOff)
           
 void setCapacity(int capacity)
           
 void setFolder(java.io.File folder)
           
 void setFolder(java.lang.String folder)
           
 void setFolderAndCapacity(java.io.File folder, int capacity)
           
 void setFolderAndCapacity(java.lang.String folder, int capacity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheManager

public CacheManager()
Method Detail

setActive

public void setActive(boolean onOff)

isActive

public boolean isActive()

addFile

public void addFile(java.io.File f)

removeFile

public void removeFile(java.io.File f)

createCacheFileName

public java.io.File createCacheFileName(java.io.File reference)

setFolder

public void setFolder(java.lang.String folder)

setFolder

public void setFolder(java.io.File folder)

getFolder

public java.io.File getFolder()

setCapacity

public void setCapacity(int capacity)

getCapacity

public int getCapacity()

setFolderAndCapacity

public void setFolderAndCapacity(java.lang.String folder,
                                 int capacity)

setFolderAndCapacity

public void setFolderAndCapacity(java.io.File folder,
                                 int capacity)

getDebugDumpAction

public javax.swing.Action getDebugDumpAction()
Get an Action object that will dump the current cache status to the console.

Returns:
Action suitable for attaching to a JMenuItem.

debugDump

protected void debugDump()

accept

public boolean accept(java.io.File dir,
                      java.lang.String name)
Specified by:
accept in interface java.io.FilenameFilter