APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.imageio.plugins.tiff

public Class TIFFJPEGCompressor

extends TIFFBaseJPEGCompressor
Class Inheritance
Imports
javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFField, .TIFFTag, java.io.ByteArrayInputStream, .ByteArrayOutputStream, java.util.Iterator, javax.imageio.ImageReader, .ImageWriteParam, javax.imageio.metadata.IIOMetadata, javax.imageio.spi.IIORegistry, .ImageReaderSpi, .ServiceRegistry, javax.imageio.stream.MemoryCacheImageInputStream, .MemoryCacheImageOutputStream

Compressor for encoding compression type 7, TTN2/Adobe JPEG-in-TIFF.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
TIFFJPEGCompressor.JPEGSPIFilter

A filter which identifies the ImageReaderSpi of a JPEG reader which supports JPEG native stream metadata.

Field Summary

Modifier and TypeField and Description
pack-priv static final int
Inherited from com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor:
IMAGE_METADATA_NAMEJPEGParamJPEGStreamMetadataJPEGWriterSTREAM_METADATA_NAMEwriteAbbreviatedStream

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static ImageReader
getJPEGTablesReader()

Retrieves a JPEG reader which supports native JPEG stream metadata.

public void
setMetadata(IIOMetadata
the IIOMetadata object for the image being written.
metadata
)

Overrides com.sun.imageio.plugins.tiff.TIFFCompressor.setMetadata.

Sets the value of the metadata field.

Inherited from com.sun.imageio.plugins.tiff.TIFFBaseJPEGCompressor:
encodeinitJPEGWriter

Field Detail

CHROMA_SUBSAMPLINGback to summary
pack-priv static final int CHROMA_SUBSAMPLING

Constructor Detail

TIFFJPEGCompressorback to summary
public TIFFJPEGCompressor(ImageWriteParam param)

Method Detail

getJPEGTablesReaderback to summary
private static ImageReader getJPEGTablesReader()

Retrieves a JPEG reader which supports native JPEG stream metadata.

setMetadataback to summary
public void setMetadata(IIOMetadata metadata)

Overrides com.sun.imageio.plugins.tiff.TIFFCompressor.setMetadata.

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.

Parameters
metadata:IIOMetadata

the IIOMetadata object for the image being written.

Annotations
@Override
See Also
getMetadata()
com.sun.imageio.plugins.tiff back to summary

private Class TIFFJPEGCompressor.JPEGSPIFilter

extends Object
implements Filter
Class Inheritance
  • java.lang.Object
  • com.sun.imageio.plugins.tiff.TIFFJPEGCompressor.JPEGSPIFilter
All Implemented Interfaces
javax.imageio.spi.ServiceRegistry.Filter

A filter which identifies the ImageReaderSpi of a JPEG reader which supports JPEG native stream metadata.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
filter(Object provider)

Implements javax.imageio.spi.ServiceRegistry.Filter.filter.

Returns true if the given provider object matches the criterion defined by this Filter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

JPEGSPIFilterback to summary
pack-priv JPEGSPIFilter()

Method Detail

filterback to summary
public boolean filter(Object provider)

Implements javax.imageio.spi.ServiceRegistry.Filter.filter.

Doc from javax.imageio.spi.ServiceRegistry.Filter.filter.

Returns true if the given provider object matches the criterion defined by this Filter.

Annotations
@Override