Package hec.map.tms.datasource
Class TmsTileFactory
java.lang.Object
hec.map.tms.datasource.TmsTileFactory
- Direct Known Subclasses:
BilTileFactory
,FltTileFactory
This is the factory class that creates TMS Tiles. This class supports two purposes.
First it is the Point where the TMS data source can create a TMS tile using the method
TmsTileFactory.getDefault().createTile(). Second it serves as an aggregator of other
Tile Factories. When create tile is called, all of the Tile Factory services that now
how to create each tile type can register themselves here using the Java Service Loader
mechanism. This allows this class to be lean and not need to know how to create each
individual tiles, and tile implementations can be plugged in and out.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
returns true if the Factory can create a tile for that file.abstract Tile
createTile
(String path, FileSystem dataProvider) Creates a Tile for the given path and filesystem or returns NULL if nothing can be createdstatic TmsTileFactory
abstract String[]
-
Constructor Details
-
TmsTileFactory
public TmsTileFactory()
-
-
Method Details
-
getDefault
-
getTileExtensions
-
createTile
Creates a Tile for the given path and filesystem or returns NULL if nothing can be created- Parameters:
path
-dataProvider
-- Returns:
-
accept
returns true if the Factory can create a tile for that file.- Parameters:
path
-- Returns:
-