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
FieldsModifier and TypeFieldDescriptionprivate java.nio.ByteBuffer
private int
private boolean
private int
private long
private byte
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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
private int
void
reset
(java.lang.String path, ISVNDeltaConsumer consumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
myBuffer
private java.nio.ByteBuffer myBuffer -
myHeaderBytes
private int myHeaderBytes -
myLastSourceOffset
private long myLastSourceOffset -
myLastSourceLength
private int myLastSourceLength -
myIsWindowSent
private boolean myIsWindowSent -
myVersion
private byte myVersion
-
-
Constructor Details
-
SVNDeltaReader
public SVNDeltaReader()
-
-
Method Details
-
reset
- 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()
-