@Test public void testDeleteDiskCopy() throws Exception { DiskCachedTile instance = new DiskCachedTile( Integer.valueOf(1234), image, 0, 0, raster, true, null); File file = instance.getFile(); assertTrue(file != null); assertTrue(file.exists()); instance.deleteDiskCopy(); assertFalse(file.exists()); }
public void deleteDiskCopy() { if (file != null) { if (!file.delete()) { LOGGER.log(Level.WARNING, "Unable to delete cached image tile file: {0}", file.getPath()); } } }
DiskCachedTile implements CachedTile { public void deleteDiskCopy() { if (file != null) { if (!file.delete()) { LOGGER.log(Level.WARNING, "Unable to delete cached image tile file: {0}", file.getPath()); } } } }
DiskCachedTile implements CachedTile { public void deleteDiskCopy() { if (file != null) { if (!file.delete()) { LOGGER.log(Level.WARNING, "Unable to delete cached image tile file: {0}", file.getPath()); } } } DiskCachedTile(Object id,
                  RenderedImage owner,
                  int tileX,
                  int tileY,
                  Raster raster,
                  boolean writeToFile,
                  Object tileCacheMetric); }
DiskCachedTile implements CachedTile { public void deleteDiskCopy() { if (file != null) { if (!file.delete()) { LOGGER.log(Level.WARNING, "Unable to delete cached image tile file: {0}", file.getPath()); } } } 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 void deleteDiskCopy() { if (file != null) { if (!file.delete()) { LOGGER.log(Level.WARNING, "Unable to delete cached image tile file: {0}", file.getPath()); } } } 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; }