public class ImageWriter extends AbstractDataWriter
DataWriterFactory
.Constructor and Description |
---|
ImageWriter(java.lang.String mimeType)
Creates a new instance with the specified MIME type.
|
Modifier and Type | Method and Description |
---|---|
void |
write(DataSource data,
java.io.OutputStream output)
Stores the specified data source.
|
getMimeType, getSetting, setDefault, setSetting
addCapabilities, getCapabilities
public ImageWriter(java.lang.String mimeType)
mimeType
- MIME type of the file format to be read.public void write(DataSource data, java.io.OutputStream output) throws java.io.IOException
data
- DataSource to be stored.output
- OutputStream to be written to.java.io.IOException
- if writing the data failed