de.erichseifert.gral.io.data
Class ImageWriter

java.lang.Object
  extended by de.erichseifert.gral.io.IOCapabilitiesStorage
      extended by de.erichseifert.gral.io.data.AbstractDataWriter
          extended by de.erichseifert.gral.io.data.ImageWriter
All Implemented Interfaces:
DataWriter

public class ImageWriter
extends AbstractDataWriter

Class that writes a DataSource to a binary image file.


Constructor Summary
ImageWriter(String mimeType)
          Creates a new instance with the specified MIME type.
 
Method Summary
 void write(DataSource data, OutputStream output)
          Stores the specified DataSource
 
Methods inherited from class de.erichseifert.gral.io.data.AbstractDataWriter
getMimeType, getSetting, setSetting
 
Methods inherited from class de.erichseifert.gral.io.IOCapabilitiesStorage
getCapabilities
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageWriter

public ImageWriter(String mimeType)
Creates a new instance with the specified MIME type.

Parameters:
mimeType - MIME type of the file format to be read.
Method Detail

write

public void write(DataSource data,
                  OutputStream output)
           throws IOException
Description copied from interface: DataWriter
Stores the specified DataSource

Parameters:
data - DataSource to be stored.
output - OutputStream to be written to.
Throws:
IOException - if writing the data failed


Copyright © 2009-2010. All Rights Reserved.