org.apache.xmlgraphics.image.writer.internal
public class JPEGImageWriter extends AbstractImageWriter
Note: This class depends on a Sun runtime environment and is therefore not compatible with non-Sun VMs (such as Harmony or GNU Classpath based VMs).
Constructor and Description |
---|
JPEGImageWriter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMIMEType() |
void |
writeImage(java.awt.image.RenderedImage image,
java.io.OutputStream out)
Encodes an image and writes it to an OutputStream.
|
void |
writeImage(java.awt.image.RenderedImage image,
java.io.OutputStream out,
ImageWriterParams params)
Encodes an image and writes it to an OutputStream.
|
createMultiImageWriter, isFunctional, supportsMultiImageWriter
public void writeImage(java.awt.image.RenderedImage image, java.io.OutputStream out) throws java.io.IOException
ImageWriter
image
- the image to be encodedout
- the OutputStream to write tojava.io.IOException
- In case of an /IO problemImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream)
public void writeImage(java.awt.image.RenderedImage image, java.io.OutputStream out, ImageWriterParams params) throws java.io.IOException
ImageWriter
image
- the image to be encodedout
- the OutputStream to write toparams
- a parameters object to customize the encoding.java.io.IOException
- In case of an /IO problemImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream, ImageWriterParams)
public java.lang.String getMIMEType()
ImageWriter.getMIMEType()
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.