xmlgraphics-commons 1.2

org.apache.xmlgraphics.image.writer.internal
Class JPEGImageWriter

java.lang.Object
  |
  +--org.apache.xmlgraphics.image.writer.AbstractImageWriter
        |
        +--org.apache.xmlgraphics.image.writer.internal.JPEGImageWriter
All Implemented Interfaces:
ImageWriter

public class JPEGImageWriter
extends AbstractImageWriter

ImageWriter implementation that uses the sun.com.image.codec.jpeg intefaces to write JPEG files.

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).

Version:
$Id: JPEGImageWriter.java 496556 2007-01-16 00:59:48Z cam $

Constructor Summary
JPEGImageWriter()
           
 
Method Summary
 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.
 
Methods inherited from class org.apache.xmlgraphics.image.writer.AbstractImageWriter
createMultiImageWriter, isFunctional, supportsMultiImageWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JPEGImageWriter

public JPEGImageWriter()
Method Detail

writeImage

public void writeImage(java.awt.image.RenderedImage image,
                       java.io.OutputStream out)
                throws java.io.IOException
Description copied from interface: ImageWriter
Encodes an image and writes it to an OutputStream.
See Also:
ImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream)

writeImage

public void writeImage(java.awt.image.RenderedImage image,
                       java.io.OutputStream out,
                       ImageWriterParams params)
                throws java.io.IOException
Description copied from interface: ImageWriter
Encodes an image and writes it to an OutputStream.
See Also:
ImageWriter.writeImage(java.awt.image.RenderedImage, java.io.OutputStream, ImageWriterParams)

getMIMEType

public java.lang.String getMIMEType()
See Also:
ImageWriter.getMIMEType()

xmlgraphics-commons 1.2

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.