public class SVNDiffWindowApplyBaton
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) java.security.MessageDigest |
myDigest |
(package private) byte[] |
mySourceBuffer |
(package private) java.io.InputStream |
mySourceStream |
(package private) int |
mySourceViewLength |
(package private) long |
mySourceViewOffset |
(package private) byte[] |
myTargetBuffer |
(package private) java.io.OutputStream |
myTargetStream |
(package private) int |
myTargetViewSize |
| Modifier | Constructor and Description |
|---|---|
private |
SVNDiffWindowApplyBaton() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
close()
Closes the source and target streams, finalizes
the checksum computation and returns it in a hex representation.
|
static SVNDiffWindowApplyBaton |
create(java.io.File source,
java.io.File target,
java.security.MessageDigest digest)
Creates a diff window apply baton whith source and target streams
represented by files.
|
static SVNDiffWindowApplyBaton |
create(java.io.InputStream source,
java.io.OutputStream target,
java.security.MessageDigest digest)
Creates a diff window apply baton whith initial source and target streams.
|
java.io.InputStream mySourceStream
java.io.OutputStream myTargetStream
long mySourceViewOffset
int mySourceViewLength
int myTargetViewSize
byte[] mySourceBuffer
byte[] myTargetBuffer
java.security.MessageDigest myDigest
public static SVNDiffWindowApplyBaton create(java.io.File source, java.io.File target, java.security.MessageDigest digest) throws SVNException
source - a source file (from where the source views would
be taken)target - a target file where the full text is writtendigest - an MD5 checksum for the full text that would be
updated after each instruction applyingSVNExceptionpublic static SVNDiffWindowApplyBaton create(java.io.InputStream source, java.io.OutputStream target, java.security.MessageDigest digest)
source - a source input stream (from where the source
views would be taken)target - a target output stream where the full text is writtendigest - an MD5 checksum for the full text that would be
updated after each instruction applyingpublic java.lang.String close()