public class SVNDeltaCombiner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
SVNDeltaCombiner.SVNOffsetsIndex |
Modifier and Type | Field and 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 and Description |
---|
SVNDeltaCombiner() |
Modifier and Type | Method and 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) |
private SVNDiffWindow myWindow
private java.nio.ByteBuffer myWindowData
private java.nio.ByteBuffer myNextWindowInstructions
private java.nio.ByteBuffer myNextWindowData
private java.nio.ByteBuffer myTarget
private java.nio.ByteBuffer myRealTarget
private java.nio.ByteBuffer myReadWindowBuffer
private SVNRangeTree myRangeTree
private SVNDeltaCombiner.SVNOffsetsIndex myOffsetsIndex
private SVNDiffInstruction[] myWindowInstructions
private SVNDiffInstruction myInstructionTemplate
public void reset()
public SVNDiffWindow readWindow(FSFile file, int version) throws SVNException
SVNException
private int[] decompress(int instructionsLength, int dataLength) throws java.io.IOException
java.io.IOException
public void skipWindow(FSFile file) throws SVNException
SVNException
public java.nio.ByteBuffer addWindow(SVNDiffWindow window) throws SVNException
SVNException
private SVNDiffWindow combineWindows(SVNDiffWindow window) throws SVNException
SVNException
private void copySourceInstructions(int offset, int limit, int targetOffset, SVNDiffWindow window, SVNDiffInstruction[] windowInsructions) throws SVNException
SVNException
private void createOffsetsIndex(SVNDiffInstruction[] instructions, int length)
private int findInstructionIndex(SVNDeltaCombiner.SVNOffsetsIndex offsets, int offset) throws SVNException
SVNException
private java.nio.ByteBuffer clearBuffer(java.nio.ByteBuffer b)
private java.nio.ByteBuffer ensureBufferSize(java.nio.ByteBuffer buffer, int dataLength)
private int readOffset(java.nio.ByteBuffer buffer)
private long readLongOffset(java.nio.ByteBuffer buffer)