org.deegree.coverage.raster.io.asc
Class ASCWriter

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

public class ASCWriter
extends Object
implements RasterWriter

Writes esri asc/grd text files. The separator can be defined in the RasterIOOptions, by supplying a value with the key RasterIOOptions.OPT_TEXT_SEPARATOR, if failing, the 'space' character will be used.

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

Constructor Summary
ASCWriter()
           
 
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

ASCWriter

public ASCWriter()
Method Detail

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.

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


Copyright © 2011. All Rights Reserved.