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 class
SVNDeltaCombiner.SVNOffsetsIndex
-
Field Summary
Fields Modifier and Type Field Description private SVNDiffInstruction
myInstructionTemplate
private java.nio.ByteBuffer
myNextWindowData
private java.nio.ByteBuffer
myNextWindowInstructions
private SVNDeltaCombiner.SVNOffsetsIndex
myOffsetsIndex
private SVNRangeTree
myRangeTree
private java.nio.ByteBuffer
myReadWindowBuffer
private java.nio.ByteBuffer
myRealTarget
private java.nio.ByteBuffer
myTarget
private SVNDiffWindow
myWindow
private java.nio.ByteBuffer
myWindowData
private SVNDiffInstruction[]
myWindowInstructions
-
Constructor Summary
Constructors Constructor Description SVNDeltaCombiner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.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)
SVNDiffWindow
readWindow(FSFile file, int version)
void
reset()
void
skipWindow(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)
-
-