if(!isHeaderWritten){ isHeaderWritten = true; } myTargetFile.write(myNewDataStream.myBuffer, 0, myNewDataStream.myBufferLength); }catch(IOException ioe){
isHeaderWritten = true; } catch(IOException ioe) {
    private void writeDiffWindow(SVNDiffWindow window) throws SVNException {        try{            window.writeTo(myTargetFile, !isHeaderWritten);            if(!isHeaderWritten){                isHeaderWritten = true;            }            myTargetFile.write(myNewDataStream.myBuffer, 0, myNewDataStream.myBufferLength);        }catch(IOException ioe){            SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, ioe.getLocalizedMessage());            SVNErrorManager.error(err, ioe);        }    }