Class TIFFJPEGCompressor


  • public class TIFFJPEGCompressor
    extends TIFFBaseJPEGCompressor
    Compressor for encoding compression type 7, TTN2/Adobe JPEG-in-TIFF.
    • Constructor Detail

      • TIFFJPEGCompressor

        public TIFFJPEGCompressor​(javax.imageio.ImageWriteParam param)
    • Method Detail

      • getJPEGTablesReader

        private static javax.imageio.ImageReader getJPEGTablesReader()
        Retrieves a JPEG reader which supports native JPEG stream metadata.
      • setMetadata

        public void setMetadata​(javax.imageio.metadata.IIOMetadata metadata)
        Sets the value of the metadata field.

        The implementation in this class also adds the TIFF fields JPEGTables, YCbCrSubSampling, YCbCrPositioning, and ReferenceBlackWhite superseding any prior settings of those fields.

        Overrides:
        setMetadata in class TIFFCompressor
        Parameters:
        metadata - the IIOMetadata object for the image being written.
        See Also:
        TIFFCompressor.getMetadata()