org.egothor.util.diff
Class GDiffWriter

java.lang.Object
  extended by org.egothor.util.diff.GDiffWriter
All Implemented Interfaces:
GDiffCreator

public class GDiffWriter
extends java.lang.Object
implements GDiffCreator

The patch file format is described at Generic Diff Format Specification


Constructor Summary
GDiffWriter(DataOutput output)
           
 
Method Summary
 void addAppend(byte[] arr, int offset, int length)
           
 void addCopy(long offset, int length)
           
 void doEnd()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDiffWriter

public GDiffWriter(DataOutput output)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addCopy

public void addCopy(long offset,
                    int length)
             throws java.io.IOException
Specified by:
addCopy in interface GDiffCreator
Throws:
java.io.IOException

addAppend

public void addAppend(byte[] arr,
                      int offset,
                      int length)
               throws java.io.IOException
Specified by:
addAppend in interface GDiffCreator
Throws:
java.io.IOException

doEnd

public void doEnd()
           throws java.io.IOException
Specified by:
doEnd in interface GDiffCreator
Throws:
java.io.IOException