RandomAccessFile raf = null;
PrintStream ps = System.out;
if (args.length == 3) { // input file, output file, get data for dump
raf = new RandomAccessFile(args[0], "r");
ps = new PrintStream(
new FilterOutputStream(
new FileOutputStream(args[1], false)));
displayData = args[2].equalsIgnoreCase("true");
} else if (args.length == 2) { // input file and output file for dump
raf = new RandomAccessFile(args[0], "r");
if (args[1].equalsIgnoreCase("true")
|| args[1].equalsIgnoreCase("false")) {
displayData = args[1].equalsIgnoreCase("true");
} else {
ps = new PrintStream(
new FilterOutputStream(
new FileOutputStream(args[1], false)));
}
} else if (args.length == 1) {
raf = new RandomAccessFile(args[0], "r");
} else {