/* * IndexPdbStructures.java */ package org.ngbw.utils; import java.io.IOException; import java.io.InputStream; /** * * @author Paul Hoover * */ class IndexPdbStructures extends IndexTask { public IndexPdbStructures(String dataset, String dataDir, String indexDir, String fileName) throws IOException { super(dataset, dataDir, indexDir, fileName); } public static void main(String[] args) { try { assert args.length == 4; (new IndexPdbStructures(args[0], args[1], args[2], args[3])).run(); } catch (Exception err) { err.printStackTrace(System.err); System.exit(-1); } } protected void addRecords(InputStream inStream) throws IOException { PdbStructureParser parser = new PdbStructureParser(inStream); StructureRecord record; while ((record = parser.nextRecord()) != null) addStructure(record); } }