Class QuickTime


  • final class QuickTime
    extends java.lang.Object
    QuickTime
    Version:
    $Id: QT.java,v 1.0 Feb 16, 2009 7:20:59 PM haraldk Exp$
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  QuickTime.ImageDesc
      Class representing the 'idsc' QuickTime Atom.
    • Constructor Summary

      Constructors 
      Constructor Description
      QuickTime()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage decompress​(javax.imageio.stream.ImageInputStream stream)
      Decompresses the QuickTime image data from the given stream.
      private static QTDecompressor getDecompressor​(QuickTime.ImageDesc description)
      Gets a decompressor that can decompress the described data.
      • Methods inherited from class java.lang.Object

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

      • QuickTime

        QuickTime()
    • Method Detail

      • getDecompressor

        private static QTDecompressor getDecompressor​(QuickTime.ImageDesc description)
        Gets a decompressor that can decompress the described data.
        Parameters:
        description - the image description ('idsc' Atom).
        Returns:
        a decompressor that can decompress data decribed by the given description, or null if no decompressor is found
      • decompress

        public static java.awt.image.BufferedImage decompress​(javax.imageio.stream.ImageInputStream stream)
                                                       throws java.io.IOException
        Decompresses the QuickTime image data from the given stream.
        Parameters:
        stream - the image input stream
        Returns:
        a BufferedImage containing the image data, or null if no decompressor is capable of decompressing the image.
        Throws:
        java.io.IOException - if an I/O exception occurs during read