org.egothor.util.diff
Class GDiffReader

java.lang.Object
  extended by org.egothor.util.diff.GDiffReader

public class GDiffReader
extends java.lang.Object

The patch file format is described at Generic Diff Format Specification


Constructor Summary
GDiffReader()
           
 
Method Summary
protected static void append(int len, DataInput patch, DataOutput output)
           
protected static void copy(long off, int len, DataInput source, DataOutput output)
           
static void main(java.lang.String[] argv)
           
static boolean patch(DataInput source, DataInput patch, DataOutput output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDiffReader

public GDiffReader()
Method Detail

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