org.deegree.coverage.raster.io.xyz
Class XYZWriter

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

public class XYZWriter
extends Object
implements RasterWriter

The XYZWriter writes xyz, separated text files. The separator can be defined in the RasterIOOptions, by supplying a value with the key XYZRasterIOProvider.XYZ_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
XYZWriter()
           
 
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

XYZWriter

public XYZWriter()
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.