Class RiffReader


  • public class RiffReader
    extends java.lang.Object
    Processes RIFF-formatted data, calling into client code via that RiffHandler interface.

    For information on this file format, see:
    • http://en.wikipedia.org/wiki/Resource_Interchange_File_Format
    • https://developers.google.com/speed/webp/docs/riff_container
    • https://www.daubnet.com/en/file-format-riff
    • Constructor Detail

      • RiffReader

        public RiffReader()
    • Method Detail

      • processRiff

        public void processRiff​(SequentialReader reader,
                                RiffHandler handler)
                         throws RiffProcessingException,
                                java.io.IOException
        Processes a RIFF data sequence.
        Parameters:
        reader - the SequentialReader from which the data should be read
        handler - the RiffHandler that will coordinate processing and accept read values
        Throws:
        RiffProcessingException - if an error occurred during the processing of RIFF data that could not be ignored or recovered from
        java.io.IOException - an error occurred while accessing the required data
      • processChunks

        public void processChunks​(SequentialReader reader,
                                  int sectionSize,
                                  RiffHandler handler)
                           throws java.io.IOException
        Throws:
        java.io.IOException