org.egothor.util.diff
Class GDiffReader
java.lang.Object
org.egothor.util.diff.GDiffReader
public class GDiffReader
- extends java.lang.Object
The patch file format is described at
Generic Diff Format Specification
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GDiffReader
public GDiffReader()
patch
public static boolean patch(DataInput source,
DataInput patch,
DataOutput output)
throws java.io.IOException
- Returns:
- true, if patch was correctly processed, false when it was denied
- Throws:
java.io.IOException
copy
protected static void copy(long off,
int len,
DataInput source,
DataOutput output)
throws java.io.IOException
- Throws:
java.io.IOException
append
protected static void append(int len,
DataInput patch,
DataOutput output)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] argv)
throws java.lang.Exception
- Throws:
java.lang.Exception