Class QTFFImageInputStream

All Implemented Interfaces:
Closeable, DataInput, AutoCloseable, ImageInputStream

public class QTFFImageInputStream extends FilterImageInputStream
QuickTimeImageInputStream.
Author:
Werner Randelshofer
  • Field Details

    • MAC_TIMESTAMP_EPOCH

      protected static final long MAC_TIMESTAMP_EPOCH
  • Constructor Details

  • Method Details

    • readMacTimestamp

      public Date readMacTimestamp() throws IOException
      Reads a 32-bit Mac timestamp (seconds since 1902).
      Returns:
      the date corresponding to the Mac timestamp
      Throws:
      IOException - if an I/O error occurs
    • readFixed16D16

      public double readFixed16D16() throws IOException
      Reads 32-bit fixed-point number divided as 16.16.
      Throws:
      IOException
    • readFixed2D30

      public double readFixed2D30() throws IOException
      Reads 32-bit fixed-point number divided as 2.30.
      Throws:
      IOException
    • readFixed8D8

      public double readFixed8D8() throws IOException
      Reads 16-bit fixed-point number divided as 8.8.
      Throws:
      IOException
    • readType

      public String readType() throws IOException
      Throws:
      IOException
    • readPString

      public String readPString() throws IOException
      Throws:
      IOException
    • readPString

      public String readPString(int fixedSize) throws IOException
      Reads a Pascal String which is padded to a fixed size.
      Throws:
      IOException
    • readUnsignedBCD4

      public int readUnsignedBCD4() throws IOException
      Throws:
      IOException
    • readUnsignedBCD2

      public int readUnsignedBCD2() throws IOException
      Throws:
      IOException