Class QTFastStartRAF


  • public class QTFastStartRAF
    extends java.lang.Object
    • Field Detail

      • supported_extensions

        private static final java.util.Set<java.lang.String> supported_extensions
      • tested

        private static final java.util.Set<java.lang.String> tested
      • VALID_TOPLEVEL_ATOMS

        private static final java.lang.String[] VALID_TOPLEVEL_ATOMS
      • transparent

        private boolean transparent
      • header

        private byte[] header
      • body_start

        private long body_start
      • body_end

        private long body_end
      • seek_position

        private long seek_position
    • Constructor Detail

      • QTFastStartRAF

        public QTFastStartRAF​(java.io.File file,
                              boolean enable)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • QTFastStartRAF

        public QTFastStartRAF​(QTFastStartRAF.FileAccessor accessor,
                              boolean enable)
                       throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • isSupportedExtension

        public static boolean isSupportedExtension​(java.lang.String extension)
      • isCompressedMoovAtom

        private boolean isCompressedMoovAtom​(QTFastStartRAF.Atom moovAtom)
      • copyOfRange

        public static byte[] copyOfRange​(byte[] original,
                                         int from,
                                         int to)
      • bytesToLong

        private long bytesToLong​(byte[] buffer)
      • seek

        public void seek​(long pos)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] buffer,
                        int pos,
                        int len)
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • length

        public long length()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Throws:
        java.io.IOException