Class QTGenericDecompressor


  • final class QTGenericDecompressor
    extends QTDecompressor
    QTGenericDecompressor
    Version:
    $Id: QTGenericDecompressor.java,v 1.0 Feb 16, 2009 9:26:13 PM haraldk Exp$
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean canDecompress​(QuickTime.ImageDesc description)
      Returns whether this decompressor is capable of decompressing the image data described by the given image description.
      java.awt.image.BufferedImage decompress​(QuickTime.ImageDesc description, java.io.InputStream stream)
      Decompresses an image.
      private java.awt.image.BufferedImage readUsingFormatName​(java.lang.String formatName, java.io.InputStream stream)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QTGenericDecompressor

        QTGenericDecompressor()
    • Method Detail

      • 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.
      • decompress

        public java.awt.image.BufferedImage decompress​(QuickTime.ImageDesc description,
                                                       java.io.InputStream stream)
                                                throws java.io.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:
        java.io.IOException - if an I/O exception occurs during reading.
      • readUsingFormatName

        private java.awt.image.BufferedImage readUsingFormatName​(java.lang.String formatName,
                                                                 java.io.InputStream stream)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException