Class QTBMPDecompressor
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.pict.QTDecompressor
-
- com.twelvemonkeys.imageio.plugins.pict.QTBMPDecompressor
-
final class QTBMPDecompressor extends QTDecompressor
QTBMPDecompressor- Version:
- $Id: QTBMPDecompressor.java,v 1.0 Feb 16, 2009 9:18:28 PM haraldk Exp$
-
-
Constructor Summary
Constructors Constructor Description QTBMPDecompressor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanDecompress(QuickTime.ImageDesc description)Returns whether this decompressor is capable of decompressing the image data described by the given image description.java.awt.image.BufferedImagedecompress(QuickTime.ImageDesc description, java.io.InputStream stream)Decompresses an image.private java.io.InputStreamfakeBMPHeader(QuickTime.ImageDesc description)private static java.lang.StringidString(byte[] data, int offset)
-
-
-
Method Detail
-
canDecompress
public boolean canDecompress(QuickTime.ImageDesc description)
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.
-
idString
private static java.lang.String idString(byte[] data, int offset)
-
decompress
public java.awt.image.BufferedImage decompress(QuickTime.ImageDesc description, java.io.InputStream stream) throws java.io.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:
java.io.IOException- if an I/O exception occurs during reading.
-
fakeBMPHeader
private java.io.InputStream fakeBMPHeader(QuickTime.ImageDesc description) throws java.io.IOException
- Throws:
java.io.IOException
-
-