org.libtiff.jai.codecimpl
Class XTIFFImage

java.lang.Object
  extended by com.sun.media.jai.codecimpl.SimpleRenderedImage
      extended by org.libtiff.jai.codecimpl.XTIFFImage
All Implemented Interfaces:
java.awt.image.RenderedImage

public class XTIFFImage
extends com.sun.media.jai.codecimpl.SimpleRenderedImage


Constructor Summary
XTIFFImage(com.sun.media.jai.codec.SeekableStream stream, com.sun.media.jai.codec.TIFFDecodeParam param, int directory)
          Constructs a XTIFFImage that acquires its data from a given SeekableStream and reads from a particular IFD of the stream.
 
Method Summary
 XTIFFDirectory getPrivateIFD(long offset)
          Reads a private IFD from a given offset in the stream.
 java.awt.image.Raster getTile(int tileX, int tileY)
          Returns tile (tileX, tileY) as a Raster.
 
Methods inherited from class com.sun.media.jai.codecimpl.SimpleRenderedImage
copyData, getBounds, getColorModel, getData, getData, getHeight, getMaxTileX, getMaxTileY, getMaxX, getMaxY, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getPropertyNames, getPropertyNames, getSampleModel, getSources, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getWidth, tileXToX, tileXToX, tileYToY, tileYToY, XToTileX, XToTileX, YToTileY, YToTileY
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTIFFImage

public XTIFFImage(com.sun.media.jai.codec.SeekableStream stream,
                  com.sun.media.jai.codec.TIFFDecodeParam param,
                  int directory)
           throws java.io.IOException
Constructs a XTIFFImage that acquires its data from a given SeekableStream and reads from a particular IFD of the stream. The index of the first IFD is 0.

Parameters:
stream - the SeekableStream to read from.
param - an instance of TIFFDecodeParam, or null.
directory - the index of the IFD to read from.
Throws:
java.io.IOException
Method Detail

getPrivateIFD

public XTIFFDirectory getPrivateIFD(long offset)
                             throws java.io.IOException
Reads a private IFD from a given offset in the stream. This method may be used to obtain IFDs that are referenced only by private tag values.

Throws:
java.io.IOException

getTile

public java.awt.image.Raster getTile(int tileX,
                                     int tileY)
Returns tile (tileX, tileY) as a Raster.

Specified by:
getTile in interface java.awt.image.RenderedImage
Specified by:
getTile in class com.sun.media.jai.codecimpl.SimpleRenderedImage