org.egothor.util.diff
Class GDiffWriter
java.lang.Object
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
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 |
GDiffWriter
public GDiffWriter(DataOutput output)
throws java.io.IOException
- Throws:
java.io.IOException
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