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 Details

    • QTBMPDecompressor

      QTBMPDecompressor()
  • Method Details

    • canDecompress

      public boolean canDecompress(QuickTime.ImageDesc description)
      Description copied from class: QTDecompressor
      Returns whether this decompressor is capable of decompressing the image data described by the given image description.
      Specified by:
      canDecompress in class QTDecompressor
      Parameters:
      description - the image description ('idsc' Atom).
      Returns:
      true if this decompressor is capable of decompressing he data in the given image description, otherwise false.
    • idString

      private static String idString(byte[] data, int offset)
    • decompress

      public BufferedImage decompress(QuickTime.ImageDesc description, InputStream stream) throws IOException
      Description copied from class: QTDecompressor
      Decompresses an image.
      Specified by:
      decompress in class QTDecompressor
      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.
    • fakeBMPHeader

      private InputStream fakeBMPHeader(QuickTime.ImageDesc description) throws IOException
      Throws:
      IOException