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