org.tmatesoft.svn.core.wc
public class DefaultSVNDiffGenerator extends Object implements ISVNDiffGenerator
By default, if there's no any specified implementation of the diff generator's
interface, SVNKit uses this default implementation. To set a custom
diff driver use setDiffGenerator()
.
Version: 1.1.1
Field Summary | |
---|---|
protected static InputStream | EMPTY_FILE_IS |
protected static byte[] | EOL |
protected static byte[] | HEADER_SEPARATOR |
protected static byte[] | PROPERTIES_SEPARATOR |
protected static String | WC_REVISION_LABEL |
Constructor Summary | |
---|---|
DefaultSVNDiffGenerator()
Constructs a DefaultSVNDiffGenerator.
|
Method Summary | |
---|---|
File | createTempDirectory() |
void | displayAddedDirectory(String path, String rev1, String rev2)
Does nothing.
|
protected void | displayBinary(OutputStream os, String mimeType1, String mimeType2) |
void | displayDeletedDirectory(String path, String rev1, String rev2)
Does nothing.
|
void | displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) |
protected boolean | displayHeader(OutputStream os, String path, boolean deleted) |
protected void | displayHeaderFields(OutputStream os, String path1, String rev1, String path2, String rev2) |
void | displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) |
protected File | getBasePath() |
SVNDiffOptions | getDiffOptions()
Gets the diff options that are used by this generator.
|
protected String | getDisplayPath(String path) |
String | getEncoding() |
void | init(String anchorPath1, String anchorPath2) |
boolean | isDiffAdded() |
boolean | isDiffCopied() |
boolean | isDiffDeleted() |
boolean | isDiffUnversioned()
Says if unversioned files are also diffed or ignored.
|
boolean | isForcedBinaryDiff() |
protected boolean | isHeaderForced(File file1, File file2) |
void | setBasePath(File basePath) |
void | setDiffAdded(boolean isDiffAdded) |
void | setDiffCopied(boolean isDiffCopied) |
void | setDiffDeleted(boolean isDiffDeleted) |
void | setDiffOptions(SVNDiffOptions options)
Sets diff options containing diff rules.
|
void | setDiffUnversioned(boolean diffUnversioned)
Includes or not unversioned files into diff processing.
|
void | setEncoding(String encoding) |
void | setForcedBinaryDiff(boolean forced) |
protected boolean | useLocalFileSeparatorChar() |
Parameters: path a directory path rev1 the first diff revision rev2 the second diff revision
Throws: SVNException
Parameters: path a directory path rev1 the first diff revision rev2 the second diff revision
Throws: SVNException
Returns: diff options
By default unversioned files are ignored.
Returns: true if diffed, false if ignored
Parameters: options diff options
If a diff operation is invoked on a versioned directory and
diffUnversioned
is true
then all unversioned files that may be met in the directory will
be processed as added. Otherwise if diffUnversioned
is false such files are ignored.
By default unversioned files are ignored.
Parameters: diffUnversioned controls whether to diff unversioned files or not
See Also: isDiffUnversioned