org.deegree.coverage.raster.io.imageio
Class IIORasterWriter

java.lang.Object
  extended by org.deegree.coverage.raster.io.imageio.IIORasterWriter
All Implemented Interfaces:
RasterWriter

public class IIORasterWriter
extends Object
implements RasterWriter

Version:
$Revision: 31644 $, $Date: 2011-08-24 22:27:43 +0200 (Wed, 24 Aug 2011) $
Author:
Oliver Tonnhofer, last edited by: $Author: mschneider $

Constructor Summary
IIORasterWriter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIORasterWriter

public IIORasterWriter()
Method Detail

write

public void write(AbstractRaster raster,
                  File file,
                  RasterIOOptions options)
           throws IOException
Description copied from interface: RasterWriter
Write the raster into file.

Specified by:
write in interface RasterWriter
options - additional information for the raster writer (format, etc)
Throws:
IOException - may be thrown when the file can't be written

write

public void write(AbstractRaster raster,
                  OutputStream out,
                  RasterIOOptions options)
           throws IOException
Description copied from interface: RasterWriter
Write the raster into strem.

Specified by:
write in interface RasterWriter
options - additional information for the raster writer (format, etc)
Throws:
IOException - may be thrown when the file can't be written

canWrite

public boolean canWrite(AbstractRaster raster,
                        RasterIOOptions options)
Description copied from interface: RasterWriter
Check if the raster writer is able to write the given raster.

Specified by:
canWrite in interface RasterWriter
Returns:
true if the class can write the raster

getSupportedFormats

public Set<String> getSupportedFormats()
Specified by:
getSupportedFormats in interface RasterWriter
Returns:
a Set of (image) formats mime/types the implementation is able to write.


Copyright © 2011. All Rights Reserved.