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.ByteBufferprivate intprivate booleanprivate intprivate longprivate byte -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidappendToBuffer(byte[] data, int offset, int length) private intdeflate(int compressedLength, java.io.OutputStream out) voidnextWindow(byte[] data, int offset, int length, java.lang.String path, ISVNDeltaConsumer consumer) private longprivate intvoidreset(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()
-