org.tmatesoft.svn.core.io.diff
public class SVNDeltaProcessor extends Object
Version: 1.1.1
Constructor Summary | |
---|---|
SVNDeltaProcessor()
Creates a processor. |
Method Summary | |
---|---|
void | applyTextDelta(InputStream base, OutputStream target, boolean computeCheksum)
Starts processing deltas given a base file stream and an output stream
to write resultant target bytes to.
|
void | applyTextDelta(File baseFile, File targetFile, boolean computeCheksum)
Starts processing deltas given a base file and a one
to write resultant target bytes to.
|
OutputStream | textDeltaChunk(SVNDiffWindow window)
Receives a next diff window to be applied. |
String | textDeltaEnd()
Performs delta processing finalizing steps. |
If a target full text is a newly added file (text deltas would be vs. empty),
then source bytes are not needed and base
may be passed as
null.
If computeChecksum
is true, then
an MD5 checksum will be calculated for target bytes. The calculated checksum is
returned by textDeltaEnd.
Parameters: base an input stream to take base file contents from target an output stream to write the resultant target contents to computeCheksum true to calculate checksum
If a target full text is a newly added file (text deltas would be vs. empty),
then source bytes are not needed and baseFile
may be passed as
null.
If a file represented by targetFile
does not exist
yet, first tries to create an empty file.
If computeChecksum
is true, then
an MD5 checksum will be calculated for target bytes. The calculated checksum is
returned by textDeltaEnd.
Parameters: baseFile a base file to read base file contents from targetFile a destination file where resultant target bytes will be written computeCheksum true to calculate checksum
Throws: SVNException
Parameters: window a diff window
Returns: a dummy output stream
Throws: SVNException
Returns: a string representing a hex form of the calculated MD5 checksum or null if checksum calculation was not required