org.deegree.coverage.raster.io
Interface RasterWriter

All Known Implementing Classes:
ASCWriter, GridWriter, IIORasterWriter, JAIRasterWriter, XYZWriter

public interface RasterWriter

This interface is for abstraction of the raster writing handling.

Version:
$Revision: 31644 $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Method Summary
 boolean canWrite(AbstractRaster raster, RasterIOOptions options)
          Check if the raster writer is able to write the given raster.
 Set<String> getSupportedFormats()
           
 void write(AbstractRaster raster, File file, RasterIOOptions options)
          Write the raster into file.
 void write(AbstractRaster raster, OutputStream out, RasterIOOptions options)
          Write the raster into strem.
 

Method Detail

write

void write(AbstractRaster raster,
           File file,
           RasterIOOptions options)
           throws IOException
Write the raster into file.

Parameters:
raster -
file -
options - additional information for the raster writer (format, etc)
Throws:
IOException - may be thrown when the file can't be written

write

void write(AbstractRaster raster,
           OutputStream out,
           RasterIOOptions options)
           throws IOException
Write the raster into strem.

Parameters:
raster -
out -
options - additional information for the raster writer (format, etc)
Throws:
IOException - may be thrown when the file can't be written

canWrite

boolean canWrite(AbstractRaster raster,
                 RasterIOOptions options)
Check if the raster writer is able to write the given raster.

Parameters:
raster -
options -
Returns:
true if the class can write the raster

getSupportedFormats

Set<String> getSupportedFormats()
Returns:
a Set of (image) formats mime/types the implementation is able to write.


Copyright © 2011. All Rights Reserved.