Class SVNDeltaReader
- java.lang.Object
-
- org.tmatesoft.svn.core.internal.delta.SVNDeltaReader
-
public class SVNDeltaReader extends java.lang.Object
Reads diff windows from stream and feeds them to the ISVNDeltaConsumer instance.- Version:
- 1.3
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.ByteBuffer
myBuffer
private int
myHeaderBytes
private boolean
myIsWindowSent
private int
myLastSourceLength
private long
myLastSourceOffset
private byte
myVersion
-
Constructor Summary
Constructors Constructor Description SVNDeltaReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
appendToBuffer(byte[] data, int offset, int length)
private int
deflate(int compressedLength, java.io.OutputStream out)
void
nextWindow(byte[] data, int offset, int length, java.lang.String path, ISVNDeltaConsumer consumer)
private long
readLongOffset()
private int
readOffset()
void
reset(java.lang.String path, ISVNDeltaConsumer consumer)
-
-
-
Method Detail
-
reset
public void reset(java.lang.String path, ISVNDeltaConsumer consumer) throws SVNException
- Throws:
SVNException
-
nextWindow
public void nextWindow(byte[] data, int offset, int length, java.lang.String path, ISVNDeltaConsumer consumer) throws SVNException
- Throws:
SVNException
-
deflate
private int deflate(int compressedLength, java.io.OutputStream out) throws java.io.IOException
- Throws:
java.io.IOException
-
appendToBuffer
private void appendToBuffer(byte[] data, int offset, int length)
-
readOffset
private int readOffset()
-
readLongOffset
private long readLongOffset()
-
-