@Test public void testCachedToDisk() throws Exception { DiskCachedTile instance1 = new DiskCachedTile( Integer.valueOf(1234), image, 0, 0, raster, false, null); assertFalse(instance1.cachedToDisk()); DiskCachedTile instance2 = new DiskCachedTile( Integer.valueOf(1234), image, 0, 0, raster, true, null); assertTrue(instance2.cachedToDisk()); instance1.writeData(raster); assertTrue(instance1.cachedToDisk()); }
public boolean cachedToDisk() { return file != null; }
DiskCachedTile implements CachedTile { public boolean cachedToDisk() { return file != null; } }
DiskCachedTile implements CachedTile { public boolean cachedToDisk() { return file != null; } DiskCachedTile(Object id,
                  RenderedImage owner,
                  int tileX,
                  int tileY,
                  Raster raster,
                  boolean writeToFile,
                  Object tileCacheMetric); }
DiskCachedTile implements CachedTile { public boolean cachedToDisk() { return file != null; } 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 boolean cachedToDisk() { return file != null; } 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; }