public interface RiffHandler
RiffReader
.Modifier and Type | Method and Description |
---|---|
void |
processChunk(String fourCC,
byte[] payload)
Perform whatever processing is necessary for the type of chunk with its
payload.
|
boolean |
shouldAcceptChunk(String fourCC)
Gets whether this handler is interested in the specific chunk type.
|
boolean |
shouldAcceptRiffIdentifier(String identifier)
Gets whether the specified RIFF identifier is of interest to this handler.
|
boolean shouldAcceptRiffIdentifier(String identifier)
false
causes processing to stop after reading only
the first twelve bytes of data.identifier
- The four character code identifying the type of RIFF databoolean shouldAcceptChunk(String fourCC)
true
if the data should be copied into an array and passed
to processChunk(String, byte[])
, or false
to avoid
the copy and skip to the next chunk in the file, if any.fourCC
- the four character code of this chunkprocessChunk(String, byte[])
should be called, otherwise falsevoid processChunk(String fourCC, byte[] payload)
shouldAcceptChunk(String)
with the same fourCC
returned true
.fourCC
- the four character code of the chunkpayload
- they payload of the chunk as a byte arrayCopyright © 2017. All rights reserved.