Class FSDeltaConsumer
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.io.fs.FSDeltaConsumer
-
- All Implemented Interfaces:
ISVNDeltaConsumer
public class FSDeltaConsumer extends java.lang.Object implements ISVNDeltaConsumer
- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringmyAuthorprivate java.lang.StringmyBasePathprivate FSCommittermyCommitterprivate java.lang.StringmyComputedChecksumprivate SVNDeltaCombinermyDeltaCombinerprivate SVNDeltaProcessormyDeltaProcessorprivate FSFSmyFSFSprivate booleanmyIsComputeChecksumprivate java.util.CollectionmyLockTokensprivate FSOutputStreammyTargetStreamprivate FSTransactionRootmyTxnRoot
-
Constructor Summary
Constructors Constructor Description FSDeltaConsumer(java.lang.String basePath, FSTransactionRoot txnRoot, FSFS fsfs, FSCommitter committer, java.lang.String author, java.util.Collection lockTokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabort()voidapplyText(java.lang.String path)voidapplyTextDelta(java.lang.String path, java.lang.String baseChecksum)Starts applying text delta(s) to an opened file.voidclose()java.lang.StringgetChecksum()private SVNDeltaCombinergetCombiner()voidsetComputeChecksum(boolean computeChecksum)java.io.OutputStreamtextDeltaChunk(java.lang.String path, SVNDiffWindow diffWindow)Collects a next delta chunk.voidtextDeltaEnd(java.lang.String path)Finalizes collecting text delta(s).
-
-
-
Field Detail
-
myBasePath
private java.lang.String myBasePath
-
myTxnRoot
private FSTransactionRoot myTxnRoot
-
myFSFS
private FSFS myFSFS
-
myCommitter
private FSCommitter myCommitter
-
myDeltaProcessor
private SVNDeltaProcessor myDeltaProcessor
-
myTargetStream
private FSOutputStream myTargetStream
-
myAuthor
private java.lang.String myAuthor
-
myLockTokens
private java.util.Collection myLockTokens
-
myDeltaCombiner
private SVNDeltaCombiner myDeltaCombiner
-
myIsComputeChecksum
private boolean myIsComputeChecksum
-
myComputedChecksum
private java.lang.String myComputedChecksum
-
-
Constructor Detail
-
FSDeltaConsumer
public FSDeltaConsumer(java.lang.String basePath, FSTransactionRoot txnRoot, FSFS fsfs, FSCommitter committer, java.lang.String author, java.util.Collection lockTokens)
-
-
Method Detail
-
applyTextDelta
public void applyTextDelta(java.lang.String path, java.lang.String baseChecksum) throws SVNExceptionDescription copied from interface:ISVNDeltaConsumerStarts applying text delta(s) to an opened file.- Specified by:
applyTextDeltain interfaceISVNDeltaConsumer- Parameters:
path- a file path relative to the edit root directorybaseChecksum- an MD5 checksum for the base file contents (before the file is changed)- Throws:
SVNException- if the calculated base file checksum didn't match the expectedbaseChecksum
-
applyText
public void applyText(java.lang.String path) throws SVNException- Throws:
SVNException
-
textDeltaChunk
public java.io.OutputStream textDeltaChunk(java.lang.String path, SVNDiffWindow diffWindow) throws SVNExceptionDescription copied from interface:ISVNDeltaConsumerCollects a next delta chunk. The return type is nomore relevant and is left only for backward compatibility. So, the return value may be just null. Otherwise if it's not null, the stream will be immediately closed.If there are more than one windows for the file, this method is called several times.
- Specified by:
textDeltaChunkin interfaceISVNDeltaConsumer- Parameters:
path- a file path relative to the edit root directorydiffWindow- a next diff window- Returns:
- an output stream
- Throws:
SVNException
-
textDeltaEnd
public void textDeltaEnd(java.lang.String path) throws SVNExceptionDescription copied from interface:ISVNDeltaConsumerFinalizes collecting text delta(s).- Specified by:
textDeltaEndin interfaceISVNDeltaConsumer- Parameters:
path- a file path relative to the edit root directory- Throws:
SVNException
-
getChecksum
public java.lang.String getChecksum()
-
close
public void close() throws SVNException- Throws:
SVNException
-
abort
public void abort() throws SVNException- Throws:
SVNException
-
setComputeChecksum
public void setComputeChecksum(boolean computeChecksum)
-
getCombiner
private SVNDeltaCombiner getCombiner()
-
-