ByteArrayOutputStream out = new ByteArrayOutputStream();
// Set up the processing chain
SWFWriter writer = new SWFWriter(out);
Appender ins = new Appender(writer);
TagParser parser = new TagParser(ins);
SWFReader reader = new SWFReader(parser, in);
// Try running the chain
try {
reader.readFile();