Lines Matching refs:File
23 import java.io.File;
154 private final File directory;
155 private final File journalFile;
156 private final File journalFileTmp;
254 public static void deleteContents(File dir) throws IOException { in deleteContents()
255 File[] files = dir.listFiles(); in deleteContents()
259 for (File file : files) { in deleteContents()
288 private DiskLruCache(File directory, int appVersion, int valueCount, long maxSize) { in DiskLruCache()
291 this.journalFile = new File(directory, JOURNAL_FILE); in DiskLruCache()
292 this.journalFileTmp = new File(directory, JOURNAL_FILE_TMP); in DiskLruCache()
307 public static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize) in open()
455 private static void deleteIfExists(File file) throws IOException { in deleteIfExists()
544 public File getDirectory() { in getDirectory()
582 File dirty = entry.getDirtyFile(i); in completeEdit()
585 File clean = entry.getCleanFile(i); in completeEdit()
640 File file = entry.getCleanFile(i); in remove()
945 public File getCleanFile(int i) { in getCleanFile()
946 return new File(directory, key + "." + i); in getCleanFile()
949 public File getDirtyFile(int i) { in getDirtyFile()
950 return new File(directory, key + "." + i + ".tmp"); in getDirtyFile()