Class FSDeltaConsumer
java.lang.Object
org.tmatesoft.svn.core.internal.io.fs.FSDeltaConsumer
- All Implemented Interfaces:
ISVNDeltaConsumer
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate FSCommitterprivate Stringprivate SVNDeltaCombinerprivate SVNDeltaProcessorprivate FSFSprivate booleanprivate Collectionprivate FSOutputStreamprivate FSTransactionRoot -
Constructor Summary
ConstructorsConstructorDescriptionFSDeltaConsumer(String basePath, FSTransactionRoot txnRoot, FSFS fsfs, FSCommitter committer, String author, Collection lockTokens) -
Method Summary
Modifier and TypeMethodDescriptionvoidabort()voidvoidapplyTextDelta(String path, String baseChecksum) Starts applying text delta(s) to an opened file.voidclose()private SVNDeltaCombinervoidsetComputeChecksum(boolean computeChecksum) textDeltaChunk(String path, SVNDiffWindow diffWindow) Collects a next delta chunk.voidtextDeltaEnd(String path) Finalizes collecting text delta(s).
-
Field Details
-
myBasePath
-
myTxnRoot
-
myFSFS
-
myCommitter
-
myDeltaProcessor
-
myTargetStream
-
myAuthor
-
myLockTokens
-
myDeltaCombiner
-
myIsComputeChecksum
private boolean myIsComputeChecksum -
myComputedChecksum
-
-
Constructor Details
-
FSDeltaConsumer
public FSDeltaConsumer(String basePath, FSTransactionRoot txnRoot, FSFS fsfs, FSCommitter committer, String author, Collection lockTokens)
-
-
Method Details
-
applyTextDelta
Description 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
- Throws:
SVNException
-
textDeltaChunk
Description 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
Description 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
-
close
- Throws:
SVNException
-
abort
- Throws:
SVNException
-
setComputeChecksum
public void setComputeChecksum(boolean computeChecksum) -
getCombiner
-