public class TIFFImageWriter extends AbstractImageWriter
Constructor and Description |
---|
TIFFImageWriter() |
Modifier and Type | Method and Description |
---|---|
MultiImageWriter |
createMultiImageWriter(OutputStream out)
Creates a MultiImageWriter instance that lets you put multiple pages into a single file
if the format supports it.
|
String |
getMIMEType() |
boolean |
supportsMultiImageWriter() |
void |
writeImage(RenderedImage image,
OutputStream out)
Encodes an image and writes it to an OutputStream.
|
void |
writeImage(RenderedImage image,
OutputStream out,
ImageWriterParams params)
Encodes an image and writes it to an OutputStream.
|
isFunctional
public void writeImage(RenderedImage image, OutputStream out) throws IOException
image
- the image to be encodedout
- the OutputStream to write toIOException
- In case of an /IO problempublic void writeImage(RenderedImage image, OutputStream out, ImageWriterParams params) throws IOException
image
- the image to be encodedout
- the OutputStream to write toparams
- a parameters object to customize the encoding.IOException
- In case of an /IO problempublic String getMIMEType()
public MultiImageWriter createMultiImageWriter(OutputStream out) throws IOException
createMultiImageWriter
in interface ImageWriter
createMultiImageWriter
in class AbstractImageWriter
out
- the OutputStream to write the image toIOException
- In case of an /IO problemImageWriter.createMultiImageWriter(
java.io.OutputStream)
public boolean supportsMultiImageWriter()
supportsMultiImageWriter
in interface ImageWriter
supportsMultiImageWriter
in class AbstractImageWriter
ImageWriter.supportsMultiImageWriter()
Copyright © 2019 Apache Software Foundation. All rights reserved.