org.deegree.coverage.raster.io.jai
Class JAIRasterDataWriter

java.lang.Object
  extended by org.deegree.coverage.raster.io.jai.JAIRasterDataWriter

public class JAIRasterDataWriter
extends Object

This class implements a simple writer for raster files. It is based on Java Advanced Imaging and saves RasterData objects as a raster image.

Version:
$Revision:10872 $, $Date:2008-04-01 15:41:48 +0200 (Tue, 01 Apr 2008) $
Author:
Oliver Tonnhofer, last edited by: $Author:otonnhofer $

Constructor Summary
JAIRasterDataWriter()
           
 
Method Summary
static void saveRasterDataToFile(RasterData rasterData, String filename)
          Saves a RasterData to TIFF file
static void saveRasterDataToFile(RasterData sourceRaster, String filename, String format)
          Saves a RasterData to file.
static void saveRasterDataToStream(RasterData sourceRaster, OutputStream stream, 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

JAIRasterDataWriter

public JAIRasterDataWriter()
Method Detail

saveRasterDataToFile

public static void saveRasterDataToFile(RasterData rasterData,
                                        String filename)
Saves a RasterData to TIFF file

Parameters:
rasterData - RasterData to save
filename - filename for output raster image

saveRasterDataToFile

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

Parameters:
sourceRaster - RasterData to save
filename - filename for output raster image
format - format for output raster

saveRasterDataToStream

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

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


Copyright © 2011. All Rights Reserved.