📄 filesizedcache.java
字号:
package net.suberic.util.cache;import java.io.*;/** * A simple file-based cache. */public class FileSizedCache extends AbstractSizedCache { // the location of the cache. File sourceDirectory = null; /** * Creates a new FileSizedCache. */ public FileSizedCache(SizedCacheEntryFactory newFactory, long newMaxSize, long newMaxEntrySize, File directory) { setFactory(newFactory); setMaxSize(newMaxSize); setMaxEntrySize(newMaxEntrySize); setSourceDirectory(directory); } /** * Loads the cache. */ public void loadCache() throws java.io.IOException { } /** * The directory in which this cache lives. */ public File getSourceDirectory() { return sourceDirectory; } /** * The directory in which this cache lives. */ public void setSourceDirectory(File newDirectory) { sourceDirectory = newDirectory; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -