|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jiu.codecs.tiff.TIFFDecoder
net.sourceforge.jiu.codecs.tiff.TIFFDecoderDeflated
A TIFF decoder for files compressed with the Deflated method.
This compression algorithm has the values 31946
(TIFFConstants.COMPRESSION_DEFLATED_INOFFICIAL
) and 8
(TIFFConstants.COMPRESSION_DEFLATED_OFFICIAL
)
in the compression tag of an image file directory.
All types of image data can be compressed with this method.
This decoder makes use of the package java.util.zip which comes with an Inflater class which does most of the use. All the decoder has to do is feed it with compressed data from the input file. and give decompressed data received from the Inflater to the putBytes method.
Constructor Summary | |
TIFFDecoderDeflated()
|
Method Summary | |
void |
decode()
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 in TIFFConstants .
|
void |
initialize()
Check if all necessary parameters have been given to this decoder and initialize several internal fields from them. |
Methods inherited from class net.sourceforge.jiu.codecs.tiff.TIFFDecoder |
getBytesPerRow, getCodec, getImageFileDirectory, getInput, getTileIndex, getX1, getX2, getY1, getY2, putBytes, setCodec, setImageFileDirectory, setTileIndex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TIFFDecoderDeflated()
Method Detail |
public void decode() throws InvalidFileStructureException, IOException
TIFFDecoder
decode
in class TIFFDecoder
InvalidFileStructureException
IOException
public Integer[] getCompressionTypes()
TIFFDecoder
TIFFConstants
.
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.
getCompressionTypes
in class TIFFDecoder
public void initialize() throws IOException, MissingParameterException
TIFFDecoder
initialize
in class TIFFDecoder
IOException
MissingParameterException
|
JIU 0.12.0 Homepage | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |