Class SVNDeltaAlgorithm
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.delta.SVNDeltaAlgorithm
-
- Direct Known Subclasses:
SVNVDeltaAlgorithm,SVNXDeltaAlgorithm
public abstract class SVNDeltaAlgorithm extends java.lang.Object- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffermyDataprivate intmyInstructionsLengthprivate java.nio.ByteBuffermyNewDataprivate intmyNewDataLengthprivate SVNDiffInstructionmyTemplateInstruction
-
Constructor Summary
Constructors Constructor Description SVNDeltaAlgorithm()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidcomputeDelta(byte[] a, int aLength, byte[] b, int bLength)protected voidcopyFromNewData(byte[] data, int offset, int length)protected voidcopyFromSource(int position, int length)protected voidcopyFromTarget(int position, int length)private static java.nio.ByteBufferensureBufferSize(java.nio.ByteBuffer buffer, int size)java.nio.ByteBuffergetData()intgetInstructionsLength()intgetNewDataLength()voidreset()
-
-
-
Field Detail
-
myNewData
private java.nio.ByteBuffer myNewData
-
myData
private java.nio.ByteBuffer myData
-
myNewDataLength
private int myNewDataLength
-
myInstructionsLength
private int myInstructionsLength
-
myTemplateInstruction
private SVNDiffInstruction myTemplateInstruction
-
-
Method Detail
-
reset
public void reset()
-
computeDelta
public abstract void computeDelta(byte[] a, int aLength, byte[] b, int bLength)
-
getData
public java.nio.ByteBuffer getData()
-
getInstructionsLength
public int getInstructionsLength()
-
getNewDataLength
public int getNewDataLength()
-
copyFromSource
protected void copyFromSource(int position, int length)
-
copyFromTarget
protected void copyFromTarget(int position, int length)
-
copyFromNewData
protected void copyFromNewData(byte[] data, int offset, int length)
-
ensureBufferSize
private static java.nio.ByteBuffer ensureBufferSize(java.nio.ByteBuffer buffer, int size)
-
-