NASA World Wind

gov.nasa.worldwind.data
Interface DataRasterWriter

All Known Implementing Classes:
AbstractDataRasterWriter, BILRasterWriter, DDSRasterWriter, GeotiffRasterWriter, ImageIORasterWriter

public interface DataRasterWriter

DataRasterWriter is a common interface for objects which can write a data raster in a particular file format.


Method Summary
 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.
 

Method Detail

canWrite

boolean canWrite(DataRaster raster,
                 String formatSuffix,
                 File file)
Checks if a data raster could be written to a File the given format.

Parameters:
raster - a data raster to be written to a File in the given format.
formatSuffix - a String containing the format suffix
file - a File to be written to
Returns:
TRUE, if a data raster could be written to the File

write

void write(DataRaster raster,
           String formatSuffix,
           File file)
           throws IOException
Writes an data raster to a File in the given format. If there is already a File present, its contents are discarded.

Parameters:
raster - a data raster to be written
formatSuffix - a String containing the format suffix
file - a File to be written to
Throws:
IOException - if any parameter is null or invalid

NASA World Wind