Class SVNDiffCallback
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.wc.AbstractDiffCallback
-
- org.tmatesoft.svn.core.internal.wc.SVNDiffCallback
-
public class SVNDiffCallback extends AbstractDiffCallback
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private static SVNStatusType[]
EMPTY_STATUS
private ISVNDiffGenerator
myGenerator
private java.io.OutputStream
myResult
private long
myRevision1
private long
myRevision2
-
Constructor Summary
Constructors Constructor Description SVNDiffCallback(SVNAdminArea adminArea, ISVNDiffGenerator generator, long rev1, long rev2, java.io.OutputStream result)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
adjustDiffGenerator(java.lang.String charset)
java.io.File
createTempDirectory()
private java.lang.String
defineConversionEncoding(SVNProperties properties, SVNProperties diff)
private java.lang.String
defineEncoding(SVNProperties properties, SVNProperties diff)
SVNStatusType
directoryAdded(java.lang.String path, long revision, boolean[] isTreeConflicted)
SVNStatusType[]
directoryClosed(java.lang.String path, boolean[] isTreeConflicted)
SVNStatusType
directoryDeleted(java.lang.String path)
SVNStatusType
directoryDeleted(java.lang.String path, boolean[] isTreeConflicted)
void
directoryOpened(java.lang.String path, long revision, boolean[] isTreeConflicted)
private void
displayFileDiff(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff)
SVNStatusType[]
fileAdded(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)
SVNStatusType[]
fileChanged(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)
SVNStatusType
fileDeleted(java.lang.String path, java.io.File file1, java.io.File file2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, boolean[] isTreeConflicted)
private java.lang.String
getCharset(java.lang.String charset, DefaultSVNDiffGenerator generator, boolean allowNative)
private java.lang.String
getCharset(SVNProperties properties, DefaultSVNDiffGenerator generator)
private java.lang.String
getCharsetByMimeType(SVNProperties properties, DefaultSVNDiffGenerator generator)
private java.lang.String
getRevision(long revision)
boolean
isDiffCopiedAsAdded()
boolean
isDiffUnversioned()
SVNStatusType
propertiesChanged(java.lang.String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted)
-
Methods inherited from class org.tmatesoft.svn.core.internal.wc.AbstractDiffCallback
addDeletedPath, categorizeProperties, clearDeletedPaths, getAdminArea, getDisplayPath, getWCAccess, isPathDeleted, setBasePath, setIsConflicted
-
-
-
-
Field Detail
-
myGenerator
private ISVNDiffGenerator myGenerator
-
myResult
private java.io.OutputStream myResult
-
myRevision2
private long myRevision2
-
myRevision1
private long myRevision1
-
EMPTY_STATUS
private static final SVNStatusType[] EMPTY_STATUS
-
-
Constructor Detail
-
SVNDiffCallback
public SVNDiffCallback(SVNAdminArea adminArea, ISVNDiffGenerator generator, long rev1, long rev2, java.io.OutputStream result)
-
-
Method Detail
-
createTempDirectory
public java.io.File createTempDirectory() throws SVNException
- Specified by:
createTempDirectory
in classAbstractDiffCallback
- Throws:
SVNException
-
isDiffUnversioned
public boolean isDiffUnversioned()
- Specified by:
isDiffUnversioned
in classAbstractDiffCallback
-
isDiffCopiedAsAdded
public boolean isDiffCopiedAsAdded()
- Specified by:
isDiffCopiedAsAdded
in classAbstractDiffCallback
-
directoryAdded
public SVNStatusType directoryAdded(java.lang.String path, long revision, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryAdded
in classAbstractDiffCallback
- Throws:
SVNException
-
directoryDeleted
public SVNStatusType directoryDeleted(java.lang.String path) throws SVNException
- Throws:
SVNException
-
fileAdded
public SVNStatusType[] fileAdded(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileAdded
in classAbstractDiffCallback
- Throws:
SVNException
-
fileChanged
public SVNStatusType[] fileChanged(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileChanged
in classAbstractDiffCallback
- Throws:
SVNException
-
fileDeleted
public SVNStatusType fileDeleted(java.lang.String path, java.io.File file1, java.io.File file2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, boolean[] isTreeConflicted) throws SVNException
- Specified by:
fileDeleted
in classAbstractDiffCallback
- Throws:
SVNException
-
displayFileDiff
private void displayFileDiff(java.lang.String path, java.io.File file1, java.io.File file2, long revision1, long revision2, java.lang.String mimeType1, java.lang.String mimeType2, SVNProperties originalProperties, SVNProperties diff) throws SVNException
- Throws:
SVNException
-
adjustDiffGenerator
private boolean adjustDiffGenerator(java.lang.String charset)
-
propertiesChanged
public SVNStatusType propertiesChanged(java.lang.String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException
- Specified by:
propertiesChanged
in classAbstractDiffCallback
- Throws:
SVNException
-
getRevision
private java.lang.String getRevision(long revision)
-
defineEncoding
private java.lang.String defineEncoding(SVNProperties properties, SVNProperties diff)
-
defineConversionEncoding
private java.lang.String defineConversionEncoding(SVNProperties properties, SVNProperties diff)
-
getCharsetByMimeType
private java.lang.String getCharsetByMimeType(SVNProperties properties, DefaultSVNDiffGenerator generator)
-
getCharset
private java.lang.String getCharset(SVNProperties properties, DefaultSVNDiffGenerator generator)
-
getCharset
private java.lang.String getCharset(java.lang.String charset, DefaultSVNDiffGenerator generator, boolean allowNative)
-
directoryDeleted
public SVNStatusType directoryDeleted(java.lang.String path, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryDeleted
in classAbstractDiffCallback
- Throws:
SVNException
-
directoryOpened
public void directoryOpened(java.lang.String path, long revision, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryOpened
in classAbstractDiffCallback
- Throws:
SVNException
-
directoryClosed
public SVNStatusType[] directoryClosed(java.lang.String path, boolean[] isTreeConflicted) throws SVNException
- Specified by:
directoryClosed
in classAbstractDiffCallback
- Throws:
SVNException
-
-