fileOut.write(getSelectedPatch().getByteArray());
fileOut.write(getSelectedPatch().export());
    public void exportPatch(File file) throws IOException,            FileNotFoundException {        if (table.getSelectedRowCount() == 0) {            ErrorMsg.reportError("Error", "No Patch Selected.");            return;        }        FileOutputStream fileOut = new FileOutputStream(file);        fileOut.write(getSelectedPatch().getByteArray());        fileOut.close();    }