public class DefaultSVNGNUDiffGenerator extends DefaultSVNDiffGenerator implements ISVNGNUDiffGenerator
EMPTY_FILE_IS, HEADER_SEPARATOR, PROPERTIES_SEPARATOR, WC_REVISION_LABEL
Constructor and Description |
---|
DefaultSVNGNUDiffGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
displayBinary(java.io.OutputStream os,
java.lang.String mimeType1,
java.lang.String mimeType2) |
void |
displayFileDiff(java.lang.String path,
java.io.File file1,
java.io.File file2,
java.lang.String rev1,
java.lang.String rev2,
java.lang.String mimeType1,
java.lang.String mimeType2,
java.io.OutputStream result)
Writes the difference between
file1 and file2 as they are seen in
rev1 and rev2 to result . |
void |
displayHeader(int type,
java.lang.String path,
java.lang.String copyFromPath,
long copyFromRevision,
java.io.OutputStream result)
Informs this diff generator about a change to a path.
|
protected boolean |
displayHeader(java.io.OutputStream os,
java.lang.String path,
boolean deleted) |
protected void |
displayHeaderFields(java.io.OutputStream os,
java.lang.String label1,
java.lang.String label2) |
boolean |
isDiffWritten() |
void |
printHeader(java.io.OutputStream os) |
void |
setDiffWritten(boolean b) |
void |
setHeaderWritten(boolean written) |
protected void |
setNewFile(FSRoot newRoot,
java.lang.String newPath) |
protected void |
setOriginalFile(FSRoot originalRoot,
java.lang.String originalPath) |
protected boolean |
useLocalFileSeparatorChar() |
createTempDirectory, displayAddedDirectory, displayDeletedDirectory, displayPropDiff, getBasePath, getDiffOptions, getDisplayPath, getEncoding, getEOL, getExternalDiffCommand, getGlobalEncoding, getLabel, getOptions, hasEncoding, hasEOL, init, isDiffAdded, isDiffCopied, isDiffDeleted, isDiffUnversioned, isForcedBinaryDiff, isHeaderForced, setBasePath, setDiffAdded, setDiffCopied, setDiffDeleted, setDiffOptions, setDiffUnversioned, setEncoding, setEOL, setExternalDiffCommand, setFallbackToAbsolutePath, setForcedBinaryDiff, setOptions, setRawDiffOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTempDirectory, displayAddedDirectory, displayDeletedDirectory, displayPropDiff, getEncoding, getEOL, init, isDiffAdded, isDiffCopied, isDiffDeleted, isDiffUnversioned, isForcedBinaryDiff, setBasePath, setDiffAdded, setDiffCopied, setDiffDeleted, setDiffUnversioned, setEncoding, setEOL, setForcedBinaryDiff
public void displayHeader(int type, java.lang.String path, java.lang.String copyFromPath, long copyFromRevision, java.io.OutputStream result) throws SVNException
ISVNGNUDiffGenerator
displayHeader
in interface ISVNGNUDiffGenerator
type
- one of static fields of this interfacepath
- a changed pathcopyFromPath
- a copy-from source path if path
is
the result of a copycopyFromRevision
- a copy-from source revision if path
is
the result of a copyresult
- an output stream where a header is to be writtenSVNException
public void displayFileDiff(java.lang.String path, java.io.File file1, java.io.File file2, java.lang.String rev1, java.lang.String rev2, java.lang.String mimeType1, java.lang.String mimeType2, java.io.OutputStream result) throws SVNException
DefaultSVNDiffGenerator
file1
and file2
as they are seen in
rev1
and rev2
to result
.displayFileDiff
in interface ISVNDiffGenerator
displayFileDiff
in class DefaultSVNDiffGenerator
path
- a file path on which the differences are
generated and written to the outputfile1
- a file with old contentsfile2
- a file with new contentsrev1
- the first diff revision of file1
rev2
- the second diff revision of file2
mimeType1
- the MIME-type of file1
mimeType2
- the MIME-type of file2
result
- the target OutputStream
where
the differences will be written toSVNException
- in the following cases:
SVNErrorCode.EXTERNAL_PROGRAM
error code - if an external diff program
exited with an error code value different from 0
and 1
exception with SVNErrorCode.IO_ERROR
error code - if an I\O error occurred
public void setHeaderWritten(boolean written)
protected boolean displayHeader(java.io.OutputStream os, java.lang.String path, boolean deleted) throws java.io.IOException
displayHeader
in class DefaultSVNDiffGenerator
java.io.IOException
protected void displayBinary(java.io.OutputStream os, java.lang.String mimeType1, java.lang.String mimeType2) throws java.io.IOException
displayBinary
in class DefaultSVNDiffGenerator
java.io.IOException
protected void displayHeaderFields(java.io.OutputStream os, java.lang.String label1, java.lang.String label2) throws java.io.IOException
displayHeaderFields
in class DefaultSVNDiffGenerator
java.io.IOException
protected void setOriginalFile(FSRoot originalRoot, java.lang.String originalPath)
protected void setNewFile(FSRoot newRoot, java.lang.String newPath)
protected boolean useLocalFileSeparatorChar()
useLocalFileSeparatorChar
in class DefaultSVNDiffGenerator
public void setDiffWritten(boolean b)
public boolean isDiffWritten()
public void printHeader(java.io.OutputStream os) throws SVNException
SVNException
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.