Package 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
-
-
Constructor Summary
Constructors Constructor Description CacheManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(java.io.File dir, java.lang.String name)voidaddFile(java.io.File f)java.io.FilecreateCacheFileName(java.io.File reference)protected voiddebugDump()intgetCapacity()javax.swing.ActiongetDebugDumpAction()Get an Action object that will dump the current cache status to the console.java.io.FilegetFolder()booleanisActive()voidremoveFile(java.io.File f)voidsetActive(boolean onOff)voidsetCapacity(int capacity)voidsetFolder(java.io.File folder)voidsetFolder(java.lang.String folder)voidsetFolderAndCapacity(java.io.File folder, int capacity)voidsetFolderAndCapacity(java.lang.String folder, int capacity)
-
-
-
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:
Actionsuitable for attaching to aJMenuItem.
-
debugDump
protected void debugDump()
-
accept
public boolean accept(java.io.File dir, java.lang.String name)- Specified by:
acceptin interfacejava.io.FilenameFilter
-
-