Package VASSAL.launch
Class TilingHandler
java.lang.Object
VASSAL.launch.TilingHandler
A launcher for the process which tiles large images.
- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTilingHandler(String aname, File cdir, Dimension tdim, int mhlim) Creates aTilingHandler.TilingHandler(String aname, File cdir, Dimension tdim, int mhlim, int pid) Deprecated, for removal: This API element is subject to removal in a future version.Retained for VASL compatibility. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanup()findImages(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String, IOException>> failed) protected DimensiongetImageSize(DataArchive archive, String ipath) protected booleanisFresh(FileArchive archive, FileStore tcache, String ipath) protected voidprotected voidvoidSlices the tiles.
-
Field Details
-
aname
-
cdir
-
tdim
-
maxheap_limit
protected final int maxheap_limit -
retried
protected int retried -
pid
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
TilingHandler
Creates aTilingHandler.- Parameters:
aname- the path to the ZIP archivecdir- the tile cache directorytdim- the tile size
-
TilingHandler
@Deprecated(since="2021-12-01", forRemoval=true) public TilingHandler(String aname, File cdir, Dimension tdim, int mhlim, int pid) Deprecated, for removal: This API element is subject to removal in a future version.Retained for VASL compatibility. Remove sometime after VASL 6.6.2.
-
-
Method Details
-
isFresh
- Throws:
IOException
-
getImageSize
- Throws:
IOException
-
findImages
protected Pair<Integer,Integer> findImages(DataArchive archive, FileStore tcache, List<String> multi, List<Pair<String, IOException>> failed) throws IOException- Throws:
IOException
-
runSlicer
protected void runSlicer(List<String> multi, int tcount, int maxheap) throws CancellationException, IOException - Throws:
CancellationExceptionIOException
-
makeHashDirs
- Throws:
IOException
-
cleanup
- Throws:
IOException
-
sliceTiles
Slices the tiles.- Throws:
IOException- if one occursCancellationException
-