org.openstreetmap.gui.jmapviewer
Class JTileDownloaderTileLoader.FileLoadJob
java.lang.Object
org.openstreetmap.gui.jmapviewer.JTileDownloaderTileLoader.FileLoadJob
- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- JTileDownloaderTileLoader
protected class JTileDownloaderTileLoader.FileLoadJob
- extends java.lang.Object
- implements java.lang.Runnable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
input
java.io.InputStream input
tilex
int tilex
tiley
int tiley
zoom
int zoom
tile
Tile tile
source
TileSource source
tileCacheDir
java.io.File tileCacheDir
tileFile
java.io.File tileFile
JTileDownloaderTileLoader.FileLoadJob
public JTileDownloaderTileLoader.FileLoadJob(TileSource source,
int tilex,
int tiley,
int zoom)
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
loadTileInBuffer
protected byte[] loadTileInBuffer(java.io.InputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
saveTileToFile
protected void saveTileToFile(byte[] rawData)
loadTileFromFile
protected boolean loadTileFromFile()
getTileFile
protected java.io.File getTileFile()