Class TIFFImageWriter
java.lang.Object
org.apache.xmlgraphics.image.writer.AbstractImageWriter
org.apache.xmlgraphics.image.writer.internal.TIFFImageWriter
- All Implemented Interfaces:
ImageWriter
ImageWriter implementation that uses the internal TIFF codec to
write TIFF files.
- Version:
- $Id$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a MultiImageWriter instance that lets you put multiple pages into a single file if the format supports it.boolean
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.Methods inherited from class org.apache.xmlgraphics.image.writer.AbstractImageWriter
isFunctional
-
Constructor Details
-
TIFFImageWriter
public TIFFImageWriter()
-
-
Method Details
-
writeImage
Encodes an image and writes it to an OutputStream.- Parameters:
image
- the image to be encodedout
- the OutputStream to write to- Throws:
IOException
- In case of an /IO problem
-
writeImage
public void writeImage(RenderedImage image, OutputStream out, ImageWriterParams params) throws IOException Encodes an image and writes it to an OutputStream.- Parameters:
image
- the image to be encodedout
- the OutputStream to write toparams
- a parameters object to customize the encoding.- Throws:
IOException
- In case of an /IO problem
-
getMIMEType
- Returns:
- the target MIME type supported by this ImageWriter
-
createMultiImageWriter
Creates a MultiImageWriter instance that lets you put multiple pages into a single file if the format supports it.- Specified by:
createMultiImageWriter
in interfaceImageWriter
- Overrides:
createMultiImageWriter
in classAbstractImageWriter
- Parameters:
out
- the OutputStream to write the image to- Returns:
- the requested MultiImageWriter instance
- Throws:
IOException
- In case of an /IO problem- See Also:
-
supportsMultiImageWriter
public boolean supportsMultiImageWriter()- Specified by:
supportsMultiImageWriter
in interfaceImageWriter
- Overrides:
supportsMultiImageWriter
in classAbstractImageWriter
- Returns:
- true if the implemented format supports multiple pages in a single file
- See Also:
-