* @param args
*/
public static void main(String[] args) {
// String cdxSpec = CDXFormatIndex.CDX_HEADER_MAGIC;
String cdxSpec = " CDX N b a m s k r V g";
CDXFormat format = null;
BlockLoader blockLoader = new GenericBlockLoader();
try {
format = new CDXFormat(cdxSpec);
} catch (CDXFormatException e1) {
e1.printStackTrace();
System.exit(1);
}
ZiplinesSearchResultSource zl = new ZiplinesSearchResultSource(format);
PrintWriter pw = new PrintWriter(System.out);
int idx;
boolean blockDump = false;
for(idx = 0; idx < args.length; idx++) {
if(args[idx].equals("-format")) {
idx++;
if(idx >= args.length) {
USAGE();
}
try {
zl.setFormat(new CDXFormat(args[idx]));
} catch (CDXFormatException e1) {
e1.printStackTrace();
System.exit(1);
}
} else if(args[idx].equals("-flexFormat")) {