/** debug */ static void make(DiskCache2 dc, String filename) throws IOException { File want = dc.getCacheFile(filename); System.out.println("make=" + want.getPath() + "; exists = " + want.exists()); if (!want.exists()) want.createNewFile(); System.out.println(" canRead= " + want.canRead() + " canWrite = " + canWrite(want) + " lastMod = " + new Date(want.lastModified())); System.out.println(" original=" + EscapeStrings.urlDecode(filename)); }
File file = diskCache.getCacheFile(uriString); if (file != null) { HttpURLConnection conn = null;
File file = diskCache.getCacheFile(uriString); if (file != null) { HttpURLConnection conn = null;
File file = diskCache.getCacheFile(uriString); if (file != null) { HttpURLConnection conn = null;
File cacheFile = diskCache2.getCacheFile(cacheName);
if (cacheName.startsWith("file:")) // LOOK cacheName = cacheName.substring(5); File cacheFile = diskCache2.getCacheFile(cacheName); if (cacheFile == null) throw new IllegalStateException();
if (cacheName.startsWith("file:")) // LOOK cacheName = cacheName.substring(5); File cacheFile = diskCache2.getCacheFile(cacheName); if (cacheFile == null) throw new IllegalStateException();
cacheName = cacheName.substring(5); File cacheFile = diskCache2.getCacheFile(cacheName); if (cacheFile == null) throw new IllegalStateException(); if (!cacheFile.exists())
File cacheFile = diskCache2.getCacheFile(cacheName); if (!cacheFile.exists()) return;
cacheName = cacheName.substring(5); File cacheFile = diskCache2.getCacheFile(cacheName); if (cacheFile == null) throw new IllegalStateException(); if (!cacheFile.exists())
if (!summaryFile.exists()) { if (null != cache) { // look for it in the cache summaryFile = cache.getCacheFile(summaryFileLocation); summaryFileLocation = summaryFile.getPath();
if (data.getName().endsWith(".grib1") || data.getName().endsWith(".grib2")) { String index = data.getPath()+".ncx4"; File indexFile = cache.getCacheFile(index); assert indexFile != null; assert indexFile.exists() : indexFile.getPath() +" does not exist";