|
DixShtix | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.dixshtix.riff.Dump
Dump chunk information about a riff file.
ExampleABCDE
, then the output looks like this.
-------
id: <RIFF>
size: <76>
type: <FRMA>
-------
id: <CHKB>
size: <0>
-------
id: <LIST>
size: <56>
type: <LSTC>
-------
id: <CHKD>
size: <18>
-------
id: <CHKE>
size: <18>
Field Summary | |
protected InStream |
in
RIFF input stream. |
protected java.io.PrintStream |
out
Output stream. |
static java.lang.String |
Progname
The marketing name by which this program is known. |
static java.lang.String |
rcsid
Information about the source file of this class. |
Constructor Summary | |
Dump(java.io.InputStream io,
java.io.PrintStream pw)
Easy constructor. |
|
Dump(InStream riff,
java.io.PrintStream pw)
Expert constructor. |
Method Summary | |
protected java.lang.String |
doIndent(int indent)
Internal routine to pretty-print output. |
(package private) void |
dumpchunk(InStream prf,
FourByteConstant fcc,
int indent)
Descend into the RIFF file hierarchy, recursively printing chunks. |
(package private) void |
dumpchunk(InStream prf,
int indent)
Descend into the RIFF file hierarchy, recursively printing chunks. |
(package private) void |
dumpchunk(InStream prf,
IOChunk chunk,
int indent)
Print Chunk and then descend recursively into the RIFF file hierarchy. |
void |
main()
Main routine for opening a RIFF file and dumping schematic of contents to the out; |
static void |
main(java.lang.String[] args)
Main routine for opening a RIFF file and dumping schematic of contents to the System.out; |
(package private) static void |
usage(java.io.PrintStream ps)
List program arguments for user. |
Methods inherited from class java.lang.Object |
|
Field Detail |
public static java.lang.String rcsid
public static java.lang.String Progname
protected InStream in
protected java.io.PrintStream out
Constructor Detail |
public Dump(InStream riff, java.io.PrintStream pw)
public Dump(java.io.InputStream io, java.io.PrintStream pw)
Method Detail |
static void usage(java.io.PrintStream ps)
public static void main(java.lang.String[] args)
protected java.lang.String doIndent(int indent)
void dumpchunk(InStream prf, int indent)
prf
- An input stream of RIFF data, positioned just prior to a chunk.indent
- State for the doIndent(int)
routine.void dumpchunk(InStream prf, FourByteConstant fcc, int indent)
prf
- An input stream of RIFF data, where fcc has already been read.fcc
- The first four bytes of the current RIFF chunk.indent
- State for the doIndent(int)
routine.void dumpchunk(InStream prf, IOChunk chunk, int indent)
prf
- An input stream of RIFF data.chunk
- The enclosing chunk, to be printed.indent
- State for the doIndent(int)
routine.public void main()
|
DixShtix | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |