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

public Class TIFFJPEGDecompressor

extends TIFFDecompressor
Class Inheritance
Known Direct Subclasses
com.sun.imageio.plugins.tiff.TIFFOldJPEGDecompressor
Imports
java.io.IOException, .ByteArrayInputStream, java.util.Iterator, javax.imageio.ImageIO, .ImageReader, .ImageReadParam, javax.imageio.stream.MemoryCacheImageInputStream, .ImageInputStream, javax.imageio.plugins.tiff.BaselineTIFFTagSet, .TIFFField, sun.java2d.Disposer, .DisposerRecord

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private byte[]
protected static final int
protected boolean
protected ImageReadParam
protected ImageReader
protected static final int
protected byte[]
Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
activeSrcHeightactiveSrcMinXactiveSrcMinYactiveSrcWidthbitsPerSamplebyteCountcolorConvertercolorMapcompressiondestinationBandsdstHeightdstMinXdstMinYdstWidthdstXOffsetdstYOffsetextraSamplesimagemetadataoffsetphotometricInterpretationplanarplanarBandrawImagereadersampleFormatsamplesPerPixelsourceBandssourceXOffsetsourceYOffsetsrcHeightsrcMinXsrcMinYsrcWidthstreamsubsampleXsubsampleY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
beginDecoding()

Overrides com.sun.imageio.plugins.tiff.TIFFDecompressor.beginDecoding.

This routine is called prior to a sequence of calls to the decode method, in order to allow any necessary tables or other structures to be initialized based on metadata values.

public void
decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride)

Implements abstract com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Decodes the source data into the provided byte array b, starting at the offset given by dstOffset.

Inherited from com.sun.imageio.plugins.tiff.TIFFDecompressor:
createComponentCMcreateInterleavedSMcreateRawImagedecodedecodeRawdecodeRawdecodeRawdecodeRawgetRawImageTypegetRawImageTypeSpecifiersetActiveSrcHeightsetActiveSrcMinXsetActiveSrcMinYsetActiveSrcWidthsetBitsPerSamplesetByteCountsetColorConvertersetColorMapsetCompressionsetDestinationBandssetDstHeightsetDstMinXsetDstMinYsetDstWidthsetDstXOffsetsetDstYOffsetsetExtraSamplessetImagesetMetadatasetOffsetsetPhotometricInterpretationsetPlanarsetPlanarBandsetReadersetSampleFormatsetSamplesPerPixelsetSourceBandssetSourceXOffsetsetSourceYOffsetsetSrcHeightsetSrcMinXsetSrcMinYsetSrcWidthsetStreamsetSubsampleXsetSubsampleY

Field Detail

databack to summary
private byte[] data
EOIback to summary
protected static final int EOI
hasJPEGTablesback to summary
protected boolean hasJPEGTables
JPEGParamback to summary
protected ImageReadParam JPEGParam
JPEGReaderback to summary
protected ImageReader JPEGReader
SOIback to summary
protected static final int SOI
tablesback to summary
protected byte[] tables

Constructor Detail

TIFFJPEGDecompressorback to summary
public TIFFJPEGDecompressor()

Method Detail

beginDecodingback to summary
public void beginDecoding()

Overrides com.sun.imageio.plugins.tiff.TIFFDecompressor.beginDecoding.

Doc from com.sun.imageio.plugins.tiff.TIFFDecompressor.beginDecoding.

This routine is called prior to a sequence of calls to the decode method, in order to allow any necessary tables or other structures to be initialized based on metadata values. This routine is guaranteed to be called any time the metadata values have changed.

The default implementation computes tables used by the decode method to rescale components to different bit depths. Thus, if this method is overridden, it is important for the subclass method to call super(), unless it overrides decode as well.

Annotations
@Override
decodeRawback to summary
public void decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride) throws IOException

Implements abstract com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Doc from com.sun.imageio.plugins.tiff.TIFFDecompressor.decodeRaw.

Decodes the source data into the provided byte array b, starting at the offset given by dstOffset. Each pixel occupies bitsPerPixel bits, with no padding between pixels. Scanlines are separated by scanlineStride bytes.

Annotations
@Override
Exceptions
IOException:
if an error occurs reading from the source ImageInputStream.
com.sun.imageio.plugins.tiff back to summary

private Class TIFFJPEGDecompressor.ImageReaderDisposerRecord

extends Object
implements DisposerRecord
Class Inheritance
  • java.lang.Object
  • com.sun.imageio.plugins.tiff.TIFFJPEGDecompressor.ImageReaderDisposerRecord
All Implemented Interfaces
sun.java2d.DisposerRecord

Field Summary

Modifier and TypeField and Description
private final ImageReader

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

readerback to summary
private final ImageReader reader

Constructor Detail

ImageReaderDisposerRecordback to summary
public ImageReaderDisposerRecord(ImageReader reader)

Method Detail

disposeback to summary
public void dispose()

Implements sun.java2d.DisposerRecord.dispose.

Annotations
@Override