|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lava.riff.RiffChunkReader | +--lava.riff.RiffStreamReader
Parses RIFF data source.
Details: A RiffStreamReader
is a
that provides access to the outermost chunk of a RIFF file. This the main interface through which a client begins processing a RIFF file.RiffChunkReader
Fields inherited from class lava.riff.RiffChunkReader |
size, tag |
Constructor Summary | |
RiffStreamReader(IRiffInput rais)
Processes RIFF header. |
Method Summary | |
void |
close()
Closes RIFF data source. |
Methods inherited from class lava.riff.RiffChunkReader |
free, freeAll, freeHeader, hasMoreData, readByte, readBytes, readChunk, readDword, readDwords, readString, readTag, readWord, readWords, reset, seek, skipBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RiffStreamReader(IRiffInput rais) throws java.io.IOException
Details: This constructor initializes a new RiffStreamReader
to consume data from the given source. Before returning, this constructor performs an initial check to confirm that the input source appears to be a valid RIFF stream and throws an exception if the check fails. The check is performed as follows:
If either of these two tests fail, a FileFormatException
is thrown. If the input source is unable to report the length of the data source, the second test will not be performed.
file
- the RIFF file to processFileFormatException
- if the file's header does not conform with the RIFF standardMethod Detail |
public void close() throws java.io.IOException
Details: This method closes the RIFF data source. All chunk readers created by this instance, including inner chunk readers created by those chunk readers, and so on, become unusable.
java.io.IOException
- if an I/O error occurs
|
Sharkysoft home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |