Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * ====================================================================
  * Copyright (c) 2004-2006 TMate Software Ltd.  All rights reserved.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution.  The terms
  * are also available at http://svnkit.com/license.html
  * If newer versions of this license are posted there, you may use a
  * newer version instead, at your option.
 * ====================================================================
 */
package org.tmatesoft.svn.core.io;
The ISVNDeltaConsumer interface is implemented by receivers of diff windows. For example, such consumers are passed to a delta generator when generating a series of diff windows from sources (text/binary streams).

Author(s):
TMate Software Ltd.
Version:
1.1.0
public interface ISVNDeltaConsumer {
    
Starts applying text delta(s) to an opened file.

Parameters:
path a file path relative to the edit root directory
baseChecksum an MD5 checksum for the base file contents (before the file is changed)
Throws:
org.tmatesoft.svn.core.SVNException if the calculated base file checksum didn't match the expected baseChecksum
    public void applyTextDelta(String pathString baseChecksumthrows SVNException;
    
    
Collects a next delta chunk. The return type is nomore relevant and is left only for backward compatibility. So, the return value may be just null. Otherwise if it's not null, the stream will be immediately closed.

If there are more than one windows for the file, this method is called several times.

Parameters:
path a file path relative to the edit root directory
diffWindow a next diff window
Returns:
an output stream
Throws:
org.tmatesoft.svn.core.SVNException
    public OutputStream textDeltaChunk(String pathSVNDiffWindow diffWindowthrows SVNException;
    
    
Finalizes collecting text delta(s).

Parameters:
path a file path relative to the edit root directory
Throws:
org.tmatesoft.svn.core.SVNException
    public void textDeltaEnd(String paththrows SVNException;
New to GrepCode? Check out our FAQ X