package twinfeats.pilot.pdb;import java.io.*;import java.util.*;/** * Class to create a new PDB file * @version     1.0 Dec 17 1997 * @author      Kent L. Smotherman */public class CreatePDB extends PDB {    /**     * Create a new PDB file with no records     * @param name              File name of the new PDB file     * @param flags             PDB header flags     * @param version           PDB version     * @param modnum            PDB modification number     * @param type              PDB type     * @param creator           PDB creator     * @param numrecordsguess   Guess at eventual number of records for this     *                          PDB.  Use for more efficient memory usage     * @param baseid            PDB Base ID for auto-generated record ID's     */    public CreatePDB(String name, short flags, short version,     int modnum, String type, String creator, int numrecordsguess, int baseid) {        mName = name;        mFlags = flags;        mVersion = version;        mModNum = modnum;        mType = type;        mCreator = creator;        mRecords = new Vector(numrecordsguess);        PDBRecord.setBaseID(baseid);    }    /**     * Add a record to the PDB file     * @param record            PDBRecord to add     */    public void addRecord(PDBRecord record) {        mRecords.addElement(record);    }}
