Package net.sourceforge.jiu.codecs.tiff
Class TIFFDecoderPackbits
- java.lang.Object
-
- net.sourceforge.jiu.codecs.tiff.TIFFDecoder
-
- net.sourceforge.jiu.codecs.tiff.TIFFDecoderPackbits
-
public class TIFFDecoderPackbits extends TIFFDecoder
A TIFF decoder for files compressed with the Packbits method. This compression algorithm has the value32773in the compression tag of an image file directory.- Since:
- 0.9.0
- Author:
- Marco Schmidt
-
-
Constructor Summary
Constructors Constructor Description TIFFDecoderPackbits()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddecode()Decode data from input and write the decompressed pixel data to the image associated with this decoder.Integer[]getCompressionTypes()Returns an array with Integer values of all compression types supported by this decoder (see the COMPRESSION_xyz constants inTIFFConstants.-
Methods inherited from class net.sourceforge.jiu.codecs.tiff.TIFFDecoder
getBytesPerRow, getCodec, getImageFileDirectory, getInput, getTileIndex, getX1, getX2, getY1, getY2, initialize, putBytes, setCodec, setImageFileDirectory, setTileIndex
-
-
-
-
Method Detail
-
decode
public void decode() throws InvalidFileStructureException, IOExceptionDescription copied from class:TIFFDecoderDecode data from input and write the decompressed pixel data to the image associated with this decoder. Child classes must override this method to implement the decoding for a particular compression type.- Specified by:
decodein classTIFFDecoder- Throws:
InvalidFileStructureExceptionIOException
-
getCompressionTypes
public Integer[] getCompressionTypes()
Description copied from class:TIFFDecoderReturns an array with Integer values of all compression types supported by this decoder (see the COMPRESSION_xyz constants inTIFFConstants. Normally, this is only one value, but some compression types got assigned more than one constant (e.g. deflated). Also, a decoder could be capable of dealing with more than one type of compression if the compression types are similar enough to justify that. However, typically a decoder can only deal with one type of compression.- Specified by:
getCompressionTypesin classTIFFDecoder- Returns:
- array with Integer objects of all TIFF compression constants supported by this decoder
-
-