IPatch[] patarray = Patch.valueOf(buffer);
IPatch[] patarray = DriverUtil.createPatch(buffer);
    public void importPatch(File file) throws IOException,            FileNotFoundException {        FileInputStream fileIn = new FileInputStream(file);        byte[] buffer = new byte[(int) file.length()];        fileIn.read(buffer);        fileIn.close();        //ErrorMsg.reportStatus("Buffer length:" + buffer.length);        IPatch[] patarray = Patch.valueOf(buffer);        for (int j = 0; j < patarray.length; j++) {            if (table.getSelectedRowCount() == 0)                myModel.addPatch(patarray[j]);            else                myModel.setPatchAt(patarray[j], table.getSelectedRow());        }        myModel.fireTableDataChanged();        changed = true;        //statusBar.setText(myModel.getRowCount() + " Patches");    }