Class QTGenericDecompressor
java.lang.Object
com.twelvemonkeys.imageio.plugins.pict.QTDecompressor
com.twelvemonkeys.imageio.plugins.pict.QTGenericDecompressor
QTGenericDecompressor
- Version:
- $Id: QTGenericDecompressor.java,v 1.0 Feb 16, 2009 9:26:13 PM haraldk Exp$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanDecompress(QuickTime.ImageDesc description) Returns whether this decompressor is capable of decompressing the image data described by the given image description.decompress(QuickTime.ImageDesc description, InputStream stream) Decompresses an image.private BufferedImagereadUsingFormatName(String formatName, InputStream stream)
-
Constructor Details
-
QTGenericDecompressor
QTGenericDecompressor()
-
-
Method Details
-
canDecompress
Description copied from class:QTDecompressorReturns whether this decompressor is capable of decompressing the image data described by the given image description.- Specified by:
canDecompressin classQTDecompressor- Parameters:
description- the image description ('idsc'Atom).- Returns:
trueif this decompressor is capable of decompressing he data in the given image description, otherwisefalse.
-
decompress
public BufferedImage decompress(QuickTime.ImageDesc description, InputStream stream) throws IOException Description copied from class:QTDecompressorDecompresses an image.- Specified by:
decompressin classQTDecompressor- Parameters:
description- the image description ('idsc'Atom).stream- the image data stream- Returns:
- the decompressed image
- Throws:
IOException- if an I/O exception occurs during reading.
-
readUsingFormatName
- Throws:
IOException
-