com.dixshtix.riff
Class ToXML
java.lang.Object
|
+--com.dixshtix.riff.Dump
|
+--com.dixshtix.riff.ToXML
- public class ToXML
- extends Dump
Dump chunk information about a riff file.
SYNOPSIS
rifftoxml file.rif
The layout of the RIFF file is dumped to the standard output.
No data (contents) are revealed.
If file.riff is the standard 84-byte test file produced from
ExampleABCDE
, then the output looks like this.
<RIFFFRMA>
<CHKB></CHKB>
<LISTLSTC>
<CHKD>This is CHKD data.</CHKD>
<CHKE>This is CHKE data.</CHKE>
</LISTLSTC>
</RIFFFRMA>
Based on code placed in the Public Domain 1995,1996 Timothy Butler.
Field Summary |
static java.lang.String |
Progname
Program name. |
static java.lang.String |
rcsid
Source file update. |
Fields inherited from class com.dixshtix.riff.Dump |
in, out |
Constructor Summary |
ToXML(java.io.InputStream io,
java.io.PrintStream pw)
Easy constructor. |
ToXML(InStream riff,
java.io.PrintStream pw)
Expert constructor. |
Method Summary |
(package private) void |
dumpchunk(InStream prf,
IOChunk chunk,
int indent)
Print Chunk and then descend recursively into the RIFF file hierarchy. |
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 |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
rcsid
public static java.lang.String rcsid
- Source file update.
Progname
public static java.lang.String Progname
- Program name.
ToXML
public ToXML(InStream riff,
java.io.PrintStream pw)
- Expert constructor.
ToXML
public ToXML(java.io.InputStream io,
java.io.PrintStream pw)
- Easy constructor.
usage
static void usage(java.io.PrintStream ps)
- List program arguments for user.
main
public static void main(java.lang.String[] args)
- Main routine for opening a RIFF file and dumping schematic of
contents to the System.out;
dumpchunk
void dumpchunk(InStream prf,
IOChunk chunk,
int indent)
- Print Chunk and then descend recursively into the RIFF file hierarchy.
- Overrides:
dumpchunk
in class Dump
- Parameters:
prf
- An input stream of RIFF data.chunk
- The enclosing chunk, to be printed.indent
- State for the Dump.doIndent(int)
routine.