Package com.drew.imaging.riff
Class RiffReader
java.lang.Object
com.drew.imaging.riff.RiffReader
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
- Author:
- Drew Noakes https://drewnoakes.com, Payton Garland
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocessChunks(SequentialReader reader, int sectionSize, RiffHandler handler) voidprocessRiff(SequentialReader reader, RiffHandler handler) Processes a RIFF data sequence.
-
Constructor Details
-
RiffReader
public RiffReader()
-
-
Method Details
-
processRiff
public void processRiff(SequentialReader reader, RiffHandler handler) throws RiffProcessingException, IOException Processes a RIFF data sequence.- Parameters:
reader- theSequentialReaderfrom which the data should be readhandler- theRiffHandlerthat 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 fromIOException- an error occurred while accessing the required data
-
processChunks
public void processChunks(SequentialReader reader, int sectionSize, RiffHandler handler) throws IOException - Throws:
IOException
-