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
ISVNDeltaConsumerapplyTextDelta in interface ISVNDeltaConsumerpath - 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
baseChecksumpublic void applyText(java.lang.String path)
throws SVNException
SVNExceptionpublic java.io.OutputStream textDeltaChunk(java.lang.String path,
SVNDiffWindow diffWindow)
throws SVNException
ISVNDeltaConsumerIf there are more than one windows for the file, this method is called several times.
textDeltaChunk in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorydiffWindow - a next diff windowSVNExceptionpublic void textDeltaEnd(java.lang.String path)
throws SVNException
ISVNDeltaConsumertextDeltaEnd in interface ISVNDeltaConsumerpath - a file path relative to the edit root
directorySVNExceptionpublic java.lang.String getChecksum()
public void close()
throws SVNException
SVNExceptionpublic void abort()
throws SVNException
SVNExceptionpublic void setComputeChecksum(boolean computeChecksum)
private SVNDeltaCombiner getCombiner()