@Test public void testSetCacheFolder() { File oldFolder = DiskCachedTile.getCacheFolder(); File newFolder = new File(System.getProperty("java.io.tmpdir")); DiskCachedTile.setCacheFolder(newFolder); assertEquals(newFolder, DiskCachedTile.getCacheFolder()); DiskCachedTile.setCacheFolder(oldFolder); }
public static void setCacheFolder(File folder) { synchronized(folderLock) { if (folder == null) { cacheFolder = null; } else { cacheFolder = new File(folder.toURI()); } } }
DiskCachedTile implements CachedTile { public static void setCacheFolder(File folder) { synchronized(folderLock) { if (folder == null) { cacheFolder = null; } else { cacheFolder = new File(folder.toURI()); } } } }
DiskCachedTile implements CachedTile { public static void setCacheFolder(File folder) { synchronized(folderLock) { if (folder == null) { cacheFolder = null; } else { cacheFolder = new File(folder.toURI()); } } } DiskCachedTile(Object id,
                  RenderedImage owner,
                  int tileX,
                  int tileY,
                  Raster raster,
                  boolean writeToFile,
                  Object tileCacheMetric); }
DiskCachedTile implements CachedTile { public static void setCacheFolder(File folder) { synchronized(folderLock) { if (folder == null) { cacheFolder = null; } else { cacheFolder = new File(folder.toURI()); } } } DiskCachedTile(Object id,
                  RenderedImage owner,
                  int tileX,
                  int tileY,
                  Raster raster,
                  boolean writeToFile,
                  Object tileCacheMetric); static File getCacheFolder(); static void setCacheFolder(File folder); @Override String toString(); Raster getTile(); RenderedImage getOwner(); long getTileTimeStamp(); Object getTileCacheMetric(); long getTileSize(); int getAction(); boolean cachedToDisk(); File getFile(); void deleteDiskCopy(); Object getTileId(); Point getLocation(); int getTileX(); int getTileY(); boolean isWritable(); }
DiskCachedTile implements CachedTile { public static void setCacheFolder(File folder) { synchronized(folderLock) { if (folder == null) { cacheFolder = null; } else { cacheFolder = new File(folder.toURI()); } } } DiskCachedTile(Object id,
                  RenderedImage owner,
                  int tileX,
                  int tileY,
                  Raster raster,
                  boolean writeToFile,
                  Object tileCacheMetric); static File getCacheFolder(); static void setCacheFolder(File folder); @Override String toString(); Raster getTile(); RenderedImage getOwner(); long getTileTimeStamp(); Object getTileCacheMetric(); long getTileSize(); int getAction(); boolean cachedToDisk(); File getFile(); void deleteDiskCopy(); Object getTileId(); Point getLocation(); int getTileX(); int getTileY(); boolean isWritable(); static final String FILE_PREFIX; static final String FILE_SUFFIX; }