Class TIFFImageWriter
- java.lang.Object
-
- org.apache.xmlgraphics.image.writer.AbstractImageWriter
-
- org.apache.xmlgraphics.image.writer.internal.TIFFImageWriter
-
- All Implemented Interfaces:
ImageWriter
public class TIFFImageWriter extends AbstractImageWriter
ImageWriter implementation that uses the internal TIFF codec to write TIFF files.- Version:
- $Id: TIFFImageWriter.java 1681108 2015-05-22 13:26:12Z ssteiner $
-
-
Constructor Summary
Constructors Constructor Description TIFFImageWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiImageWritercreateMultiImageWriter(java.io.OutputStream out)Creates a MultiImageWriter instance that lets you put multiple pages into a single file if the format supports it.java.lang.StringgetMIMEType()booleansupportsMultiImageWriter()voidwriteImage(java.awt.image.RenderedImage image, java.io.OutputStream out)Encodes an image and writes it to an OutputStream.voidwriteImage(java.awt.image.RenderedImage image, java.io.OutputStream out, ImageWriterParams params)Encodes an image and writes it to an OutputStream.-
Methods inherited from class org.apache.xmlgraphics.image.writer.AbstractImageWriter
isFunctional
-
-
-
-
Method Detail
-
writeImage
public void writeImage(java.awt.image.RenderedImage image, java.io.OutputStream out) throws java.io.IOExceptionEncodes an image and writes it to an OutputStream.- Parameters:
image- the image to be encodedout- the OutputStream to write to- Throws:
java.io.IOException- In case of an /IO problem
-
writeImage
public void writeImage(java.awt.image.RenderedImage image, java.io.OutputStream out, ImageWriterParams params) throws java.io.IOExceptionEncodes 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:
java.io.IOException- In case of an /IO problem
-
getMIMEType
public java.lang.String getMIMEType()
- Returns:
- the target MIME type supported by this ImageWriter
-
createMultiImageWriter
public MultiImageWriter createMultiImageWriter(java.io.OutputStream out) throws java.io.IOException
Creates a MultiImageWriter instance that lets you put multiple pages into a single file if the format supports it.- Specified by:
createMultiImageWriterin interfaceImageWriter- Overrides:
createMultiImageWriterin classAbstractImageWriter- Parameters:
out- the OutputStream to write the image to- Returns:
- the requested MultiImageWriter instance
- Throws:
java.io.IOException- In case of an /IO problem- See Also:
ImageWriter.createMultiImageWriter( java.io.OutputStream)
-
supportsMultiImageWriter
public boolean supportsMultiImageWriter()
- Specified by:
supportsMultiImageWriterin interfaceImageWriter- Overrides:
supportsMultiImageWriterin classAbstractImageWriter- Returns:
- true if the implemented format supports multiple pages in a single file
- See Also:
ImageWriter.supportsMultiImageWriter()
-
-