public class FSDeltaConsumer extends java.lang.Object implements ISVNDeltaConsumer
| 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() |
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).
|
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)
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.