|
DixShtix | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dixshtix.riff.Parser
Generic reader of RIFF files.
Field Summary | |
protected java.util.Map |
formParsables
Chunk interpreters for Forms. |
protected InStream |
in
RIFF input stream. |
protected java.util.Map |
listParsables
Chunk interpreters for LISTs. |
protected java.util.Map |
readables
Chunk interpreters for Chunks. |
Constructor Summary | |
Parser(java.io.InputStream io)
Easy constructor. |
|
Parser(InStream riff)
Expert constructor. |
Method Summary | |
void |
parse()
Main routine for opening a RIFF file and parsing schematic of contents to the output object. |
(package private) void |
parsechunk(InStream prf)
Descend into the RIFF file hierarchy, recursively parsing chunks. |
(package private) void |
parsechunk(InStream prf,
FourByteConstant fcc)
Descend into the RIFF file hierarchy, recursively parsing chunks. |
(package private) void |
parsechunk(InStream prf,
IOChunk chunk)
Parse Chunk and then descend recursively into the RIFF file hierarchy. |
void |
registerChunk(FourByteConstant fcc,
Parsable reader)
|
void |
registerForm(FourByteConstant formFlavor,
FourByteConstant formType,
Parsable reader)
|
void |
registerList(FourByteConstant listType,
Parsable reader)
|
Methods inherited from class java.lang.Object |
|
Field Detail |
protected InStream in
protected java.util.Map formParsables
protected java.util.Map listParsables
protected java.util.Map readables
Constructor Detail |
public Parser(InStream riff)
public Parser(java.io.InputStream io)
Method Detail |
public void registerChunk(FourByteConstant fcc, Parsable reader)
public void registerList(FourByteConstant listType, Parsable reader)
public void registerForm(FourByteConstant formFlavor, FourByteConstant formType, Parsable reader)
void parsechunk(InStream prf)
prf
- An input stream of RIFF data, positioned just prior to a chunk.void parsechunk(InStream prf, FourByteConstant fcc)
prf
- An input stream of RIFF data, where fcc has already been read.fcc
- The first four bytes of the current RIFF chunk.void parsechunk(InStream prf, IOChunk chunk)
prf
- An input stream of RIFF data.chunk
- The enclosing chunk, to be printed.public void parse()
|
DixShtix | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |