int newDataLength = algorithm.getNewDataLength();
SVNDiffWindow window = new SVNDiffWindow(sourceOffset, sourceLength, targetLength, instructionsLength, newDataLength);
window.setData(algorithm.getData());
OutputStream os = consumer.textDeltaChunk(path, window);
SVNFileUtil.closeFile(os);
algorithm.reset();
}
private int readToBuffer(InputStream is, byte[] buffer) throws IOException {
int read = is.read(buffer, 0, buffer.length);
if (read <= 0) {