newChecksum = myDeltaGenerator.sendDelta(path, sourceIS, targetIS, editor, true);
newChecksum = myDeltaGenerator.sendDelta(path, sourceIS, 0, targetIS, editor, true);
    public void sendTextDeltas(ISVNEditor editor) throws SVNException {        for (Iterator paths = myModifiedFiles.keySet().iterator(); paths.hasNext();) {            String path = (String) paths.next();            SVNCommitItem item = (SVNCommitItem) myModifiedFiles.get(path);            SVNWCAccess wcAccess = item.getWCAccess();            wcAccess.checkCancelled();            SVNEvent event = SVNEventFactory.createCommitEvent(wcAccess.getAnchor().getRoot(), item.getFile(),                    SVNEventAction.COMMIT_DELTA_SENT, SVNNodeKind.FILE, null);            wcAccess.handleEvent(event, ISVNEventHandler.UNKNOWN);            SVNDirectory dir = wcAccess.getDirectory(SVNPathUtil.removeTail(item.getPath()));            String name = SVNPathUtil.tail(item.getPath());            SVNEntry entry = dir.getEntries().getEntry(name, false);            File tmpFile = dir.getBaseFile(name, true);            myTmpFiles.add(tmpFile);            SVNTranslator.translate(dir, name, name, SVNFileUtil.getBasePath(tmpFile), false, false);            String checksum = null;            if (!item.isAdded()) {                checksum = SVNFileUtil.computeChecksum(dir.getBaseFile(name, false));                String realChecksum = entry.getChecksum();                if (realChecksum != null && !realChecksum.equals(checksum)) {                    SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_CORRUPT_TEXT_BASE, "Checksum mismatch for ''{0}''; expected: ''{1}'', actual: ''{2}''",                            new Object[] {dir.getFile(name), realChecksum, checksum});                     SVNErrorManager.error(err);                }            }            editor.applyTextDelta(path, checksum);            if (myDeltaGenerator == null) {                myDeltaGenerator = new SVNDeltaGenerator();            }            InputStream sourceIS = null;            InputStream targetIS = null;            File baseFile = dir.getBaseFile(name, false);            String newChecksum = null;            try {                sourceIS = !item.isAdded() && baseFile.exists() ? SVNFileUtil.openFileForReading(baseFile) : SVNFileUtil.DUMMY_IN;                targetIS = tmpFile.exists() ? SVNFileUtil.openFileForReading(tmpFile) : SVNFileUtil.DUMMY_IN;                newChecksum = myDeltaGenerator.sendDelta(path, sourceIS, targetIS, editor, true);            } finally {                SVNFileUtil.closeFile(sourceIS);                SVNFileUtil.closeFile(targetIS);            }            editor.closeFile(path, newChecksum);        }    }