Class SvnDiffCallback
java.lang.Object
org.tmatesoft.svn.core.internal.wc2.ng.SvnDiffCallback
- All Implemented Interfaces:
ISvnDiffCallback
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate ISvnDiffGeneratorprivate booleanprivate static final longprivate java.io.OutputStreamprivate longprivate long -
Constructor Summary
ConstructorsConstructorDescriptionSvnDiffCallback(ISvnDiffGenerator generator, long rev1, long rev2, boolean noCopyFromOnAdd, boolean diffTargetIsCopy, java.io.OutputStream outputStream) -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanadjustDiffGenerator(java.lang.String charset) private java.lang.StringdefineConversionEncoding(SVNProperties properties, SVNProperties diff) private java.lang.StringdefineEncoding(SVNProperties properties, SVNProperties diff) voiddirAdded(SvnDiffCallbackResult result, java.io.File path, long revision, java.lang.String copyFromPath, long copyFromRevision) voiddirClosed(SvnDiffCallbackResult result, java.io.File path, boolean dirWasAdded) voiddirDeleted(SvnDiffCallbackResult result, java.io.File path) voiddirOpened(SvnDiffCallbackResult result, java.io.File path, long revision) voiddirPropsChanged(SvnDiffCallbackResult result, java.io.File path, boolean dirWasAdded, SVNProperties propChanges, SVNProperties originalProperties) private voiddisplayContentChanged(java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties propChanges, SVNProperties originalProperties, SvnDiffCallback.OperationKind operation, java.io.File copyFromPath) voidfileAdded(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, java.io.File copyFromPath, long copyFromRevision, SVNProperties propChanges, SVNProperties originalProperties) voidfileChanged(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties propChanges, SVNProperties originalProperties) voidfileDeleted(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties) voidfileOpened(SvnDiffCallbackResult result, java.io.File path, long revision) private java.lang.StringgetCharset(java.lang.String charset, ISvnDiffGenerator generator, boolean allowNative) private java.lang.StringgetCharset(SVNProperties properties, ISvnDiffGenerator generator) private java.lang.StringgetCharsetByMimeType(SVNProperties properties, ISvnDiffGenerator generator) private static SVNPropertiesgetRegularProperties(SVNProperties propChanges) private java.lang.StringgetRevisionString(long revision) private SvnTargetgetTarget(java.io.File path) voidpropertiesChanged(java.io.File path, long revision1, long revision2, boolean dirWasAdded, SVNProperties diff, SVNProperties originalProperties) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NON_EXSTENT_REVISION
private static final long NON_EXSTENT_REVISION- See Also:
-
generator
-
outputStream
private java.io.OutputStream outputStream -
revision2
private long revision2 -
revision1
private long revision1 -
noCopyFromOnAdd
private boolean noCopyFromOnAdd -
diffTargetIsCopy
private boolean diffTargetIsCopy
-
-
Constructor Details
-
SvnDiffCallback
public SvnDiffCallback(ISvnDiffGenerator generator, long rev1, long rev2, boolean noCopyFromOnAdd, boolean diffTargetIsCopy, java.io.OutputStream outputStream)
-
-
Method Details
-
fileOpened
public void fileOpened(SvnDiffCallbackResult result, java.io.File path, long revision) throws SVNException - Specified by:
fileOpenedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileChanged
public void fileChanged(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
fileChangedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileAdded
public void fileAdded(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, java.io.File copyFromPath, long copyFromRevision, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
fileAddedin interfaceISvnDiffCallback- Throws:
SVNException
-
fileDeleted
public void fileDeleted(SvnDiffCallbackResult result, java.io.File path, java.io.File leftFile, java.io.File rightFile, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties) throws SVNException - Specified by:
fileDeletedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirDeleted
- Specified by:
dirDeletedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirOpened
public void dirOpened(SvnDiffCallbackResult result, java.io.File path, long revision) throws SVNException - Specified by:
dirOpenedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirAdded
public void dirAdded(SvnDiffCallbackResult result, java.io.File path, long revision, java.lang.String copyFromPath, long copyFromRevision) throws SVNException - Specified by:
dirAddedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirPropsChanged
public void dirPropsChanged(SvnDiffCallbackResult result, java.io.File path, boolean dirWasAdded, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException - Specified by:
dirPropsChangedin interfaceISvnDiffCallback- Throws:
SVNException
-
dirClosed
public void dirClosed(SvnDiffCallbackResult result, java.io.File path, boolean dirWasAdded) throws SVNException - Specified by:
dirClosedin interfaceISvnDiffCallback- Throws:
SVNException
-
getRevisionString
private java.lang.String getRevisionString(long revision) -
getRegularProperties
-
propertiesChanged
public void propertiesChanged(java.io.File path, long revision1, long revision2, boolean dirWasAdded, SVNProperties diff, SVNProperties originalProperties) throws SVNException - Throws:
SVNException
-
displayContentChanged
private void displayContentChanged(java.io.File path, java.io.File leftFile, java.io.File rightFile, long rev1, long rev2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties propChanges, SVNProperties originalProperties, SvnDiffCallback.OperationKind operation, java.io.File copyFromPath) throws SVNException - Throws:
SVNException
-
defineEncoding
-
getCharsetByMimeType
private java.lang.String getCharsetByMimeType(SVNProperties properties, ISvnDiffGenerator generator) -
getCharset
-
getCharset
private java.lang.String getCharset(java.lang.String charset, ISvnDiffGenerator generator, boolean allowNative) -
defineConversionEncoding
-
adjustDiffGenerator
private boolean adjustDiffGenerator(java.lang.String charset) -
getTarget
-