net.sf.statsvn.util
Class SvnDiffUtils
java.lang.Object
net.sf.statsvn.util.SvnDiffUtils
public final class SvnDiffUtils
- extends java.lang.Object
Utilities class that manages calls to svn diff.
- Version:
- $Id: SvnDiffUtils.java 368 2008-06-25 21:23:46Z benoitx $
- Author:
- Jason Kealey , Gunter Mussbacher
Method Summary |
static java.util.Vector |
getLineDiff(java.lang.String newRevNr)
Returns line count differences for all files in a particular revision. |
static int[] |
getLineDiff(java.lang.String oldRevNr,
java.lang.String newRevNr,
java.lang.String filename)
Returns line count differences between two revisions of a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESULT_SIZE
public static final int RESULT_SIZE
- See Also:
- Constant Field Values
getLineDiff
public static int[] getLineDiff(java.lang.String oldRevNr,
java.lang.String newRevNr,
java.lang.String filename)
throws java.io.IOException,
BinaryDiffException
- Returns line count differences between two revisions of a file.
- Parameters:
oldRevNr
- old revision numbernewRevNr
- new revision numberfilename
- the filename
- Returns:
- A int[2] array of [lines added, lines removed] is returned.
- Throws:
java.io.IOException
- problem parsing the stream
BinaryDiffException
- if the error message is due to trying to diff binary files.
getLineDiff
public static java.util.Vector getLineDiff(java.lang.String newRevNr)
throws java.io.IOException,
BinaryDiffException
- Returns line count differences for all files in a particular revision.
- Parameters:
newRevNr
- new revision number
- Returns:
- A vector of object[3] array of [filename, int[2](lines added, lines removed), isBinary] is returned.
- Throws:
java.io.IOException
- problem parsing the stream
BinaryDiffException
- if the error message is due to trying to diff binary files.
Copyright © 2008. All Rights Reserved.