org.apache.xmlgraphics.image.writer.imageio

## Class ImageIOJPEGImageWriter

- java.lang.Object
- - org.apache.xmlgraphics.image.writer.imageio.ImageIOImageWriter
  - - org.apache.xmlgraphics.image.writer.imageio.ImageIOJPEGImageWriter

- All Implemented Interfaces:
    java.util.EventListener, javax.imageio.event.IIOWriteWarningListener, ImageWriter

      public class ImageIOJPEGImageWriter
      extends ImageIOImageWriter

  ImageWriter that encodes JPEG images using Image I/O.
  Version:
    $Id$

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ImageIOJPEGImageWriter()` Main constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected javax.imageio.ImageWriteParam` | `getDefaultWriteParam(javax.imageio.ImageWriter iiowriter, java.awt.image.RenderedImage image, ImageWriterParams params)` Returns the default write parameters for encoding the image.
    `protected javax.imageio.metadata.IIOMetadata` | `updateMetadata(java.awt.image.RenderedImage image, javax.imageio.metadata.IIOMetadata meta, ImageWriterParams params)` Updates the metadata information based on the parameters to this writer.

    - ### Methods inherited from class org.apache.xmlgraphics.image.writer.imageio.ImageIOImageWriter

      `createMultiImageWriter, createStreamMetadata, getChildNode, getMIMEType, isFunctional, supportsMultiImageWriter, warningOccurred, writeImage, writeImage`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ImageIOJPEGImageWriter

          public ImageIOJPEGImageWriter()

      Main constructor.

  - ### Method Detail

    - #### updateMetadata

          protected javax.imageio.metadata.IIOMetadata updateMetadata(java.awt.image.RenderedImage image,
                                                                      javax.imageio.metadata.IIOMetadata meta,
                                                                      ImageWriterParams params)

      Description copied from class: `ImageIOImageWriter`
      Updates the metadata information based on the parameters to this writer.
      Overrides:
        `updateMetadata` in class `ImageIOImageWriter`
      Parameters:
        `image` - the current image being rendered
        `meta` - the metadata
        `params` - the parameters
      Returns:
        the updated metadata

    - #### getDefaultWriteParam

          protected javax.imageio.ImageWriteParam getDefaultWriteParam(javax.imageio.ImageWriter iiowriter,
                                                                       java.awt.image.RenderedImage image,
                                                                       ImageWriterParams params)

      Returns the default write parameters for encoding the image.
      Overrides:
        `getDefaultWriteParam` in class `ImageIOImageWriter`
      Parameters:
        `iiowriter` - The IIO ImageWriter that will be used
        `image` - the image to be encoded
        `params` - the parameters for this writer instance
      Returns:
        the IIO ImageWriteParam instance

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