Class SVNDeltaCombiner
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.delta.SVNDeltaCombiner
-
public class SVNDeltaCombiner extends java.lang.Object- Version:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSVNDeltaCombiner.SVNOffsetsIndex
-
Field Summary
Fields Modifier and Type Field Description private SVNDiffInstructionmyInstructionTemplateprivate java.nio.ByteBuffermyNextWindowDataprivate java.nio.ByteBuffermyNextWindowInstructionsprivate SVNDeltaCombiner.SVNOffsetsIndexmyOffsetsIndexprivate SVNRangeTreemyRangeTreeprivate java.nio.ByteBuffermyReadWindowBufferprivate java.nio.ByteBuffermyRealTargetprivate java.nio.ByteBuffermyTargetprivate SVNDiffWindowmyWindowprivate java.nio.ByteBuffermyWindowDataprivate SVNDiffInstruction[]myWindowInstructions
-
Constructor Summary
Constructors Constructor Description SVNDeltaCombiner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBufferaddWindow(SVNDiffWindow window)private java.nio.ByteBufferclearBuffer(java.nio.ByteBuffer b)private SVNDiffWindowcombineWindows(SVNDiffWindow window)private voidcopySourceInstructions(int offset, int limit, int targetOffset, SVNDiffWindow window, SVNDiffInstruction[] windowInsructions)private voidcreateOffsetsIndex(SVNDiffInstruction[] instructions, int length)private int[]decompress(int instructionsLength, int dataLength)private java.nio.ByteBufferensureBufferSize(java.nio.ByteBuffer buffer, int dataLength)private intfindInstructionIndex(SVNDeltaCombiner.SVNOffsetsIndex offsets, int offset)private longreadLongOffset(java.nio.ByteBuffer buffer)private intreadOffset(java.nio.ByteBuffer buffer)SVNDiffWindowreadWindow(FSFile file, int version)voidreset()voidskipWindow(FSFile file)
-
-
-
Field Detail
-
myWindow
private SVNDiffWindow myWindow
-
myWindowData
private java.nio.ByteBuffer myWindowData
-
myNextWindowInstructions
private java.nio.ByteBuffer myNextWindowInstructions
-
myNextWindowData
private java.nio.ByteBuffer myNextWindowData
-
myTarget
private java.nio.ByteBuffer myTarget
-
myRealTarget
private java.nio.ByteBuffer myRealTarget
-
myReadWindowBuffer
private java.nio.ByteBuffer myReadWindowBuffer
-
myRangeTree
private SVNRangeTree myRangeTree
-
myOffsetsIndex
private SVNDeltaCombiner.SVNOffsetsIndex myOffsetsIndex
-
myWindowInstructions
private SVNDiffInstruction[] myWindowInstructions
-
myInstructionTemplate
private SVNDiffInstruction myInstructionTemplate
-
-
Method Detail
-
reset
public void reset()
-
readWindow
public SVNDiffWindow readWindow(FSFile file, int version) throws SVNException
- Throws:
SVNException
-
decompress
private int[] decompress(int instructionsLength, int dataLength) throws java.io.IOException- Throws:
java.io.IOException
-
skipWindow
public void skipWindow(FSFile file) throws SVNException
- Throws:
SVNException
-
addWindow
public java.nio.ByteBuffer addWindow(SVNDiffWindow window) throws SVNException
- Throws:
SVNException
-
combineWindows
private SVNDiffWindow combineWindows(SVNDiffWindow window) throws SVNException
- Throws:
SVNException
-
copySourceInstructions
private void copySourceInstructions(int offset, int limit, int targetOffset, SVNDiffWindow window, SVNDiffInstruction[] windowInsructions) throws SVNException- Throws:
SVNException
-
createOffsetsIndex
private void createOffsetsIndex(SVNDiffInstruction[] instructions, int length)
-
findInstructionIndex
private int findInstructionIndex(SVNDeltaCombiner.SVNOffsetsIndex offsets, int offset) throws SVNException
- Throws:
SVNException
-
clearBuffer
private java.nio.ByteBuffer clearBuffer(java.nio.ByteBuffer b)
-
ensureBufferSize
private java.nio.ByteBuffer ensureBufferSize(java.nio.ByteBuffer buffer, int dataLength)
-
readOffset
private int readOffset(java.nio.ByteBuffer buffer)
-
readLongOffset
private long readLongOffset(java.nio.ByteBuffer buffer)
-
-