public class FSDeltaConsumer extends java.lang.Object implements ISVNDeltaConsumer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
myAuthor |
private java.lang.String |
myBasePath |
private FSCommitter |
myCommitter |
private java.lang.String |
myComputedChecksum |
private SVNDeltaCombiner |
myDeltaCombiner |
private SVNDeltaProcessor |
myDeltaProcessor |
private FSFS |
myFSFS |
private boolean |
myIsComputeChecksum |
private java.util.Collection |
myLockTokens |
private FSOutputStream |
myTargetStream |
private FSTransactionRoot |
myTxnRoot |
Constructor and Description |
---|
FSDeltaConsumer(java.lang.String basePath,
FSTransactionRoot txnRoot,
FSFS fsfs,
FSCommitter committer,
java.lang.String author,
java.util.Collection lockTokens) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
applyText(java.lang.String path) |
void |
applyTextDelta(java.lang.String path,
java.lang.String baseChecksum)
Starts applying text delta(s) to an opened file.
|
void |
close() |
java.lang.String |
getChecksum() |
private SVNDeltaCombiner |
getCombiner() |
void |
setComputeChecksum(boolean computeChecksum) |
java.io.OutputStream |
textDeltaChunk(java.lang.String path,
SVNDiffWindow diffWindow)
Collects a next delta chunk.
|
void |
textDeltaEnd(java.lang.String path)
Finalizes collecting text delta(s).
|
private java.lang.String myBasePath
private FSTransactionRoot myTxnRoot
private FSFS myFSFS
private FSCommitter myCommitter
private SVNDeltaProcessor myDeltaProcessor
private FSOutputStream myTargetStream
private java.lang.String myAuthor
private java.util.Collection myLockTokens
private SVNDeltaCombiner myDeltaCombiner
private boolean myIsComputeChecksum
private java.lang.String myComputedChecksum
public FSDeltaConsumer(java.lang.String basePath, FSTransactionRoot txnRoot, FSFS fsfs, FSCommitter committer, java.lang.String author, java.util.Collection lockTokens)
public void applyTextDelta(java.lang.String path, java.lang.String baseChecksum) throws SVNException
ISVNDeltaConsumer
applyTextDelta
in interface ISVNDeltaConsumer
path
- a file path relative to the edit root
directorybaseChecksum
- an MD5 checksum for the base file contents (before the
file is changed)SVNException
- if the calculated base file checksum didn't match the expected
baseChecksum
public void applyText(java.lang.String path) throws SVNException
SVNException
public java.io.OutputStream textDeltaChunk(java.lang.String path, SVNDiffWindow diffWindow) throws SVNException
ISVNDeltaConsumer
If there are more than one windows for the file, this method is called several times.
textDeltaChunk
in interface ISVNDeltaConsumer
path
- a file path relative to the edit root
directorydiffWindow
- a next diff windowSVNException
public void textDeltaEnd(java.lang.String path) throws SVNException
ISVNDeltaConsumer
textDeltaEnd
in interface ISVNDeltaConsumer
path
- a file path relative to the edit root
directorySVNException
public java.lang.String getChecksum()
public void close() throws SVNException
SVNException
public void abort() throws SVNException
SVNException
public void setComputeChecksum(boolean computeChecksum)
private SVNDeltaCombiner getCombiner()