protected void displayBinary(OutputStream os, String mimeType1, String mimeType2) throws IOException { os.write("(Binary files differ)".getBytes(getEncoding())); os.write(getEOL()); }
protected void displayBinary(OutputStream os, String mimeType1, String mimeType2) throws IOException { os.write("(Binary files differ)".getBytes(getEncoding())); os.write(getEOL()); }
protected void displayBinary(OutputStream os, String mimeType1, String mimeType2) throws IOException { os.write("(Binary files differ)".getBytes(getEncoding())); os.write(getEOL()); }
protected boolean displayHeader(OutputStream os, String path, boolean deleted) throws IOException { if (myHeader != null) { os.write(myHeader.getBytes(getEncoding())); os.write(getEOL()); myHeader = null; myIsHeaderWritten = true; } else if (!myIsHeaderWritten) { path = path.startsWith("/") ? path.substring(1) : path; String header = "Index: " + path; os.write(header.getBytes(getEncoding())); os.write(getEOL()); myIsHeaderWritten = true; } os.write(HEADER_SEPARATOR); os.write(getEOL()); return false; }
protected boolean displayHeader(OutputStream os, String path, boolean deleted) throws IOException { if (myHeader != null) { os.write(myHeader.getBytes(getEncoding())); os.write(getEOL()); myHeader = null; myIsHeaderWritten = true; } else if (!myIsHeaderWritten) { path = path.startsWith("/") ? path.substring(1) : path; String header = "Index: " + path; os.write(header.getBytes(getEncoding())); os.write(getEOL()); myIsHeaderWritten = true; } os.write(HEADER_SEPARATOR.getBytes(getEncoding())); os.write(getEOL()); return false; }
protected boolean displayHeader(OutputStream os, String path, boolean deleted) throws IOException { if (myHeader != null) { os.write(myHeader.getBytes(getEncoding())); os.write(getEOL()); myHeader = null; myIsHeaderWritten = true; } else if (!myIsHeaderWritten) { path = path.startsWith("/") ? path.substring(1) : path; String header = "Index: " + path; os.write(header.getBytes(getEncoding())); os.write(getEOL()); myIsHeaderWritten = true; } os.write(HEADER_SEPARATOR.getBytes(getEncoding())); os.write(getEOL()); return false; }
protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
protected void displayHeaderFields(OutputStream os, String label1, String label2) throws IOException { os.write("--- ".getBytes(getEncoding())); String originalLabel = null; String newLabel = null; try { originalLabel = generateLabel(myOriginalRoot, myOriginalPath); newLabel = generateLabel(myNewRoot, myNewPath); } catch (SVNException svne) { throw new IOException(svne.getLocalizedMessage()); } os.write(originalLabel.getBytes(getEncoding())); os.write(getEOL()); os.write("+++ ".getBytes(getEncoding())); os.write(newLabel.getBytes(getEncoding())); os.write(getEOL()); }
case NO_DIFF: try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage());
case NO_DIFF: try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage());
case NO_DIFF: try { result.write(getEOL()); } catch (IOException e) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, e.getLocalizedMessage());
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); }