public Patch createNewPatch() { try { InputStream fileIn = getClass().getResourceAsStream(patchFileName); byte[] buffer = new byte [SINGLE_SIZE]; fileIn.read(buffer); fileIn.close(); return new Patch(buffer, this); } catch (Exception e) { ErrorMsg.reportError("Error", "Unable to open " + patchFileName, e); return null; }
public Patch createNewPatch() { return (Patch) DriverUtil.createNewPatch(this, patchFileName, SINGLE_SIZE);
    public Patch createNewPatch() { // Borrowed from DR660 driver	try {	    InputStream fileIn = getClass().getResourceAsStream(patchFileName);	    byte[] buffer = new byte [SINGLE_SIZE];	    fileIn.read(buffer);	    fileIn.close();	    return new Patch(buffer, this);	} catch (Exception e) {	    ErrorMsg.reportError("Error", "Unable to open " + patchFileName, e);	    return null;	}    }