Class RIFFChunk

  • Direct Known Subclasses:
    AnimationFrame, GenericChunk, VP8xChunk

    abstract class RIFFChunk
    extends java.lang.Object
    An abstract RIFF chunk.

    RIFF was introduced in 1991 by Microsoft and IBM, and was presented by Microsoft as the default format for Windows 3.1 multimedia files. It is based on Electronic Arts' Interchange File Format, introduced in 1985 on the Commodore Amiga, the only difference being that multi-byte integers are in little-endian format, native to the 80x86 processor series used in IBM PCs, rather than the big-endian format native to the 68k processor series used in Amiga and Apple Macintosh computers, where IFF files were heavily used.

    In 2010 Google introduced the WebP picture format, which uses RIFF as a container.

    See Also:
    Resource Interchange Format
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int fourCC  
      (package private) long length  
      (package private) long offset  
    • Constructor Summary

      Constructors 
      Constructor Description
      RIFFChunk​(int fourCC, long length, long offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • fourCC

        final int fourCC
      • length

        final long length
      • offset

        final long offset
    • Constructor Detail

      • RIFFChunk

        RIFFChunk​(int fourCC,
                  long length,
                  long offset)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object