public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { CountingOutputStream counitngStream = new CountingOutputStream(result, 0); super.displayFileDiff(path, file1, file2, rev1, rev2, mimeType1, mimeType2, counitngStream); if (counitngStream.getPosition() > 0) { try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.DEFAULT); } } setDiffWritten(counitngStream.getPosition() > 0); }
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { CountingOutputStream counitngStream = new CountingOutputStream(result, 0); super.displayFileDiff(path, file1, file2, rev1, rev2, mimeType1, mimeType2, counitngStream); if (counitngStream.getPosition() > 0) { try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.DEFAULT); } } setDiffWritten(counitngStream.getPosition() > 0); }
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { CountingOutputStream counitngStream = new CountingOutputStream(result, 0); super.displayFileDiff(path, file1, file2, rev1, rev2, mimeType1, mimeType2, counitngStream); if (counitngStream.getPosition() > 0) { try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage()); SVNErrorManager.error(err, e, SVNLogType.DEFAULT); } } setDiffWritten(counitngStream.getPosition() > 0); }