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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SVNDiffInstruction
private java.nio.ByteBuffer
private java.nio.ByteBuffer
private SVNDeltaCombiner.SVNOffsetsIndex
private SVNRangeTree
private java.nio.ByteBuffer
private java.nio.ByteBuffer
private java.nio.ByteBuffer
private SVNDiffWindow
private java.nio.ByteBuffer
private SVNDiffInstruction[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjava.nio.ByteBuffer
addWindow
(SVNDiffWindow window) private java.nio.ByteBuffer
clearBuffer
(java.nio.ByteBuffer b) private SVNDiffWindow
combineWindows
(SVNDiffWindow window) private void
copySourceInstructions
(int offset, int limit, int targetOffset, SVNDiffWindow window, SVNDiffInstruction[] windowInsructions) private void
createOffsetsIndex
(SVNDiffInstruction[] instructions, int length) private int[]
decompress
(int instructionsLength, int dataLength) private java.nio.ByteBuffer
ensureBufferSize
(java.nio.ByteBuffer buffer, int dataLength) private int
findInstructionIndex
(SVNDeltaCombiner.SVNOffsetsIndex offsets, int offset) private long
readLongOffset
(java.nio.ByteBuffer buffer) private int
readOffset
(java.nio.ByteBuffer buffer) readWindow
(FSFile file, int version) void
reset()
void
skipWindow
(FSFile file) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
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
-
myOffsetsIndex
-
myWindowInstructions
-
myInstructionTemplate
-
-
Constructor Details
-
SVNDeltaCombiner
public SVNDeltaCombiner()
-
-
Method Details
-
reset
public void reset() -
readWindow
- Throws:
SVNException
-
decompress
private int[] decompress(int instructionsLength, int dataLength) throws java.io.IOException - Throws:
java.io.IOException
-
skipWindow
- Throws:
SVNException
-
addWindow
- Throws:
SVNException
-
combineWindows
- Throws:
SVNException
-
copySourceInstructions
private void copySourceInstructions(int offset, int limit, int targetOffset, SVNDiffWindow window, SVNDiffInstruction[] windowInsructions) throws SVNException - Throws:
SVNException
-
createOffsetsIndex
-
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)
-