org.libtiff.jai.codecimpl
Class XTIFFFaxTileCodec

java.lang.Object
  extended by org.libtiff.jai.codec.XTIFFTileCodecImpl
      extended by org.libtiff.jai.codecimpl.XTIFFFaxTileCodec
All Implemented Interfaces:
XTIFFTileCodec

public class XTIFFFaxTileCodec
extends XTIFFTileCodecImpl

This codec encapsulates all the logic for the TIFF "lzw" decoding codec algorithm.


Constructor Summary
XTIFFFaxTileCodec()
          Public constructor
 
Method Summary
 boolean canEncode()
          Indicate whether this codec can encode data.
 XTIFFTileCodec create()
          Creation method
 void decodeTilePixels(byte[] input, java.awt.Rectangle newRect, byte[] bdata)
          Decode a rectangle of pixels
 void decodeTilePixels(byte[] input, java.awt.Rectangle newRect, short[] sdata)
          Decode a rectangle of pixels
 void initializeDecoding()
          The initialization method particular to Fax decoding.
 void register()
          Registration method
 
Methods inherited from class org.libtiff.jai.codec.XTIFFTileCodecImpl
create, create, decode, encode, encodeTilePixels, getCompressedTileSize, getCompression, initialize, initializeEncoding, register
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XTIFFFaxTileCodec

public XTIFFFaxTileCodec()
Public constructor

Method Detail

create

public XTIFFTileCodec create()
Creation method

Specified by:
create in class XTIFFTileCodecImpl

canEncode

public boolean canEncode()
Description copied from class: XTIFFTileCodecImpl
Indicate whether this codec can encode data. Override to return true only if your codec implments encoding.

Overrides:
canEncode in class XTIFFTileCodecImpl

register

public void register()
Registration method

Specified by:
register in interface XTIFFTileCodec
Specified by:
register in class XTIFFTileCodecImpl
See Also:
XTIFFDirectory

initializeDecoding

public void initializeDecoding()
The initialization method particular to Fax decoding.

Overrides:
initializeDecoding in class XTIFFTileCodecImpl

decodeTilePixels

public void decodeTilePixels(byte[] input,
                             java.awt.Rectangle newRect,
                             byte[] bdata)
Decode a rectangle of pixels

Specified by:
decodeTilePixels in class XTIFFTileCodecImpl
Parameters:
input - the byte array of compressed input data
newRect - the rectangular shape of the target pixels
bdata - the target decompressed pixels.

decodeTilePixels

public void decodeTilePixels(byte[] input,
                             java.awt.Rectangle newRect,
                             short[] sdata)
Decode a rectangle of pixels

Specified by:
decodeTilePixels in class XTIFFTileCodecImpl
Parameters:
input - the byte array of compressed input data
newRect - the rectangular shape of the target pixels
sdata - the target decompressed pixels.