public abstract class SVNDeltaAlgorithm
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.nio.ByteBuffer |
myData |
private int |
myInstructionsLength |
private java.nio.ByteBuffer |
myNewData |
private int |
myNewDataLength |
private SVNDiffInstruction |
myTemplateInstruction |
Constructor and Description |
---|
SVNDeltaAlgorithm() |
Modifier and Type | Method and Description |
---|---|
abstract void |
computeDelta(byte[] a,
int aLength,
byte[] b,
int bLength) |
protected void |
copyFromNewData(byte[] data,
int offset,
int length) |
protected void |
copyFromSource(int position,
int length) |
protected void |
copyFromTarget(int position,
int length) |
private static java.nio.ByteBuffer |
ensureBufferSize(java.nio.ByteBuffer buffer,
int size) |
java.nio.ByteBuffer |
getData() |
int |
getInstructionsLength() |
int |
getNewDataLength() |
void |
reset() |
private java.nio.ByteBuffer myNewData
private java.nio.ByteBuffer myData
private int myNewDataLength
private int myInstructionsLength
private SVNDiffInstruction myTemplateInstruction
public void reset()
public abstract void computeDelta(byte[] a, int aLength, byte[] b, int bLength)
public java.nio.ByteBuffer getData()
public int getInstructionsLength()
public int getNewDataLength()
protected void copyFromSource(int position, int length)
protected void copyFromTarget(int position, int length)
protected void copyFromNewData(byte[] data, int offset, int length)
private static java.nio.ByteBuffer ensureBufferSize(java.nio.ByteBuffer buffer, int size)