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
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)
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.