public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow) throws SVNException { ISVNDeltaConsumer fsfsConsumer = getDeltaConsumer(); return fsfsConsumer.textDeltaChunk(path, diffWindow); }
public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow) throws SVNException { ISVNDeltaConsumer fsfsConsumer = getDeltaConsumer(); return fsfsConsumer.textDeltaChunk(path, diffWindow); }
public void reset(String path, ISVNDeltaConsumer consumer) throws SVNException { // if header was read, but data was not -> fire empty window. if (myHeaderBytes == 4 && !myIsWindowSent) { OutputStream os = consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY); SVNFileUtil.closeFile(os); } myLastSourceLength = 0; myLastSourceOffset = 0; myHeaderBytes = 0; myIsWindowSent = false; myVersion = 0; myBuffer.clear(); myBuffer.limit(0); }
public OutputStream textDeltaChunk(String path, SVNDiffWindow diffWindow) throws SVNException { ISVNDeltaConsumer fsfsConsumer = getDeltaConsumer(); return fsfsConsumer.textDeltaChunk(path, diffWindow); }
public void reset(String path, ISVNDeltaConsumer consumer) throws SVNException { // if header was read, but data was not -> fire empty window. if (myHeaderBytes == 4 && !myIsWindowSent) { OutputStream os = consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY); SVNFileUtil.closeFile(os); } myLastSourceLength = 0; myLastSourceOffset = 0; myHeaderBytes = 0; myBuffer.clear(); myBuffer.limit(0); myIsWindowSent = false; }
public void reset(String path, ISVNDeltaConsumer consumer) throws SVNException { // if header was read, but data was not -> fire empty window. if (myHeaderBytes == 4 && !myIsWindowSent) { OutputStream os = consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY); SVNFileUtil.closeFile(os); } myLastSourceLength = 0; myLastSourceOffset = 0; myHeaderBytes = 0; myIsWindowSent = false; myVersion = 0; myBuffer.clear(); myBuffer.limit(0); }
public void reset(String path, ISVNDeltaConsumer consumer) throws SVNException { // if header was read, but data was not -> fire empty window. if (myHeaderBytes == 4 && !myIsWindowSent) { OutputStream os = consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY); SVNFileUtil.closeFile(os); } myLastSourceLength = 0; myLastSourceOffset = 0; myHeaderBytes = 0; myIsWindowSent = false; myVersion = 0; myBuffer.clear(); myBuffer.limit(0); }
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);
OutputStream os = consumer.textDeltaChunk(path, window); SVNFileUtil.closeFile(os); myBuffer.position(position + allDataLength);
OutputStream os = consumer.textDeltaChunk(path, window); SVNFileUtil.closeFile(os); myBuffer.position(position + allDataLength);
OutputStream os = consumer.textDeltaChunk(path, window); SVNFileUtil.closeFile(os); myBuffer.position(position + allDataLength);
private void sendDelta(String path, long sourceOffset, byte[] source, int sourceLength, byte[] target, int targetLength, ISVNDeltaConsumer consumer) throws SVNException { // always use x algorithm, v is deprecated now. SVNDeltaAlgorithm algorithm = myXDelta; algorithm.computeDelta(source, sourceLength, target, targetLength); // send single diff window to the editor. if (consumer == null) { algorithm.reset(); return; } int instructionsLength = algorithm.getInstructionsLength(); 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 void sendDelta(String path, long sourceOffset, byte[] source, int sourceLength, byte[] target, int targetLength, ISVNDeltaConsumer consumer) throws SVNException { // always use x algorithm, v is deprecated now. SVNDeltaAlgorithm algorithm = myXDelta; algorithm.computeDelta(source, sourceLength, target, targetLength); // send single diff window to the editor. if (consumer == null) { algorithm.reset(); return; } int instructionsLength = algorithm.getInstructionsLength(); 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(); }
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);
private void sendDelta(String path, long sourceOffset, byte[] source, int sourceLength, byte[] target, int targetLength, ISVNDeltaConsumer consumer) throws SVNException { // always use x algorithm, v is deprecated now. SVNDeltaAlgorithm algorithm = myXDelta; algorithm.computeDelta(source, sourceLength, target, targetLength); // send single diff window to the editor. if (consumer == null) { algorithm.reset(); return; } int instructionsLength = algorithm.getInstructionsLength(); 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(); }
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);
private void sendDelta(String path, long sourceOffset, byte[] source, int sourceLength, byte[] target, int targetLength, ISVNDeltaConsumer consumer) throws SVNException { // use x or v algorithm depending on sourceLength SVNDeltaAlgorithm algorithm = sourceLength == 0 ? myVDelta : myXDelta; algorithm.computeDelta(source, sourceLength, target, targetLength); // send single diff window to the editor. if (consumer == null) { algorithm.reset(); return; } int instructionsLength = algorithm.getInstructionsLength(); 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(); } }
consumer.textDeltaChunk(path, SVNDiffWindow.EMPTY);