Generates a series of diff windows of fixed size comparing
targetLength
of target bytes (read from
target
stream) against
sourceLength
of source bytes (read from
source
stream at offset
sourceOffset
), and sends produced windows to the provided
consumer
.
Size of the produced windows is set in a constructor of this delta generator.
consumer
's {@link org.tmatesoft.svn.core.io.ISVNDeltaConsumer#textDeltaChunk(String,SVNDiffWindow) textDeltaChunk()} method is called to receive and process generated windows. Now new data comes within a window, so the output stream is either ignored (if it's
null) or immediately closed (if it's not
null).
@param path a file repository path
@param source an input stream to read source bytes from
@param sourceLength the size of the source view
@param sourceOffset an offset of the source view in the given
source
stream
@param target an input stream to read target bytes from
@param targetLength the size of the target view
@param consumer a diff windows consumer
@throws SVNException