DixShtix

com.dixshtix.riff
Class ExampleABCDE

java.lang.Object
  |
  +--com.dixshtix.riff.ExampleABCDE

public class ExampleABCDE
extends java.lang.Object

Create a simple demo RIFF file.

SYNOPSIS

abcde

DESCRIPTION

This program creates a RIFF file with the following structure. FRM1 is a form, CHKA is a single chunk, and LSTA is a list containing chunks CHKB and CHKC.
|   FRMA --- CHKB
|            LSTC - CHKD
|                   CHKE
 

This program produces an 84-byte file, which has an ASCII dump which can be viewed by any binary file reader. Note how the first four bytes declare this to be a RIFF file and bytes 9-12 declare the RIFF form to be of type "FRMA".
0x00x10x20x3 0x40x50x60x7 0x80x90xA0xB 0xC0xD0xE0xF
0x00 RIFF Lnulnulnul FRMA CHKB
0x10 nulnulnulnul LIST 8nulnulnul LSTC
0x20 CHKD dc2nulnulnul This spissp
0x30 CHKD spdat a.CH KEdc2nul
0x40 nulnulTh isspi sspCH KEspd
0x50 ata.  

This file can also be dumped to more meaningful content with the utility programs Dump and ToXML.
Based on code in the Public Domain 1995,1996 Timothy Butler.


Field Summary
static java.lang.String rcsid
          Information about the source file for this program.
 
Constructor Summary
ExampleABCDE()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main routine, which ignores command-line arguments.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

rcsid

public static java.lang.String rcsid
Information about the source file for this program.
Constructor Detail

ExampleABCDE

public ExampleABCDE()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Main routine, which ignores command-line arguments.

DixShtix