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 data source to a binary image file. This class shouldn't be used directly but using theDataWriterFactory.
-
-
Constructor Summary
Constructors Constructor and Description ImageWriter(java.lang.String mimeType)Creates a new instance with the specified MIME type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidwrite(DataSource data, java.io.OutputStream output)Stores the specified data source.-
Methods inherited from class de.erichseifert.gral.io.data.AbstractDataWriter
getMimeType, getSetting, setSetting
-
Methods inherited from class de.erichseifert.gral.io.IOCapabilitiesStorage
getCapabilities
-
-
-
-
Constructor Detail
-
ImageWriter
public ImageWriter(java.lang.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, java.io.OutputStream output) throws java.io.IOException
Stores the specified data source.- Parameters:
data- DataSource to be stored.output- OutputStream to be written to.- Throws:
java.io.IOException- if writing the data failed
-
-
DataMelt 3.0 © DataMelt by jWork.ORG