public interface DataRasterWriter
DataRasterWriter
is a common interface for objects
which can write a data raster in a particular file format.Modifier and Type | Method and Description |
---|---|
boolean |
canWrite(DataRaster raster,
String formatSuffix,
File file)
Checks if a data raster could be written to a File the given format.
|
void |
write(DataRaster raster,
String formatSuffix,
File file)
Writes an data raster to a
File in the given format. |
boolean canWrite(DataRaster raster, String formatSuffix, File file)
raster
- a data raster to be written to a File
in the given format.formatSuffix
- a String
containing the format suffixfile
- a File
to be written toTRUE
, if a data raster could be written to the File
void write(DataRaster raster, String formatSuffix, File file) throws IOException
File
in the given format.
If there is already a File present, its contents are discarded.raster
- a data raster to be writtenformatSuffix
- a String
containing the format suffixfile
- a File
to be written toIOException
- if any parameter is null
or invalid