de.sciss.io
Class CacheManager
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CacheManager
public CacheManager()
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