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

java.lang.Object
  extended by org.deegree.coverage.raster.io.imageio.IIORasterDataWriter

public class IIORasterDataWriter
extends Object

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
IIORasterDataWriter()
           
 
Method Summary
static void saveRasterDataToFile(RasterData sourceRaster, File file, String format)
          Saves a RasterData to file.
static void saveRasterDataToStream(RasterData sourceRaster, OutputStream out, String format)
          Saves a RasterData to stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IIORasterDataWriter

public IIORasterDataWriter()
Method Detail

saveRasterDataToFile

public static void saveRasterDataToFile(RasterData sourceRaster,
                                        File file,
                                        String format)
                                 throws IOException
Saves a RasterData to file. The format must be supported by JAI (i.e. BMP, JPEG, PNG, PNM, TIFF)

Parameters:
sourceRaster - RasterData to save
file - file for output raster image
format - format for output raster
Throws:
IOException

saveRasterDataToStream

public static void saveRasterDataToStream(RasterData sourceRaster,
                                          OutputStream out,
                                          String format)
                                   throws IOException
Saves a RasterData to stream. The format must be supported by JAI (i.e. BMP, JPEG, PNG, PNM, TIFF)

Parameters:
sourceRaster - RasterData to save
out - stream for output raster image
format - format for output raster
Throws:
IOException


Copyright © 2011. All Rights Reserved.