de.erichseifert.gral.io.data
Class ImageWriter
java.lang.Object
de.erichseifert.gral.io.IOCapabilitiesStorage
de.erichseifert.gral.io.data.AbstractDataWriter
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. |
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.
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.