Class SvnDiffCallback
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc2.ng.SvnDiffCallback
-
- All Implemented Interfaces:
ISvnDiffCallback
public class SvnDiffCallback extends java.lang.Object implements ISvnDiffCallback
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSvnDiffCallback.OperationKind
-
Field Summary
Fields Modifier and Type Field Description private booleandiffTargetIsCopyprivate ISvnDiffGeneratorgeneratorprivate booleannoCopyFromOnAddprivate static longNON_EXSTENT_REVISIONprivate java.io.OutputStreamoutputStreamprivate longrevision1private longrevision2
-
Constructor Summary
Constructors Constructor Description SvnDiffCallback(ISvnDiffGenerator generator, long rev1, long rev2, boolean noCopyFromOnAdd, boolean diffTargetIsCopy, java.io.OutputStream outputStream)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private 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)
-
-
-
Field Detail
-
NON_EXSTENT_REVISION
private static final long NON_EXSTENT_REVISION
- See Also:
- Constant Field Values
-
generator
private ISvnDiffGenerator generator
-
outputStream
private java.io.OutputStream outputStream
-
revision2
private long revision2
-
revision1
private long revision1
-
noCopyFromOnAdd
private boolean noCopyFromOnAdd
-
diffTargetIsCopy
private boolean diffTargetIsCopy
-
-
Constructor Detail
-
SvnDiffCallback
public SvnDiffCallback(ISvnDiffGenerator generator, long rev1, long rev2, boolean noCopyFromOnAdd, boolean diffTargetIsCopy, java.io.OutputStream outputStream)
-
-
Method Detail
-
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
public void dirDeleted(SvnDiffCallbackResult result, java.io.File path) throws SVNException
- 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
private static SVNProperties getRegularProperties(SVNProperties propChanges)
-
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
private java.lang.String defineEncoding(SVNProperties properties, SVNProperties diff)
-
getCharsetByMimeType
private java.lang.String getCharsetByMimeType(SVNProperties properties, ISvnDiffGenerator generator)
-
getCharset
private java.lang.String getCharset(SVNProperties properties, ISvnDiffGenerator generator)
-
getCharset
private java.lang.String getCharset(java.lang.String charset, ISvnDiffGenerator generator, boolean allowNative)
-
defineConversionEncoding
private java.lang.String defineConversionEncoding(SVNProperties properties, SVNProperties diff)
-
adjustDiffGenerator
private boolean adjustDiffGenerator(java.lang.String charset)
-
getTarget
private SvnTarget getTarget(java.io.File path)
-
-