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,
java.lang.String formatSuffix,
java.io.File file)
Checks if a data raster could be written to a File the given format.
|
void |
write(DataRaster raster,
java.lang.String formatSuffix,
java.io.File file)
Writes an data raster to a
File in the given format. |
boolean canWrite(DataRaster raster, java.lang.String formatSuffix, java.io.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, java.lang.String formatSuffix, java.io.File file) throws java.io.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 tojava.io.IOException
- if any parameter is null
or invalid