| java.lang.Object org.tmatesoft.svn.core.io.diff.SVNDiffInstruction
SVNDiffInstruction | public class SVNDiffInstruction (Code) | | The SVNDiffInstruction class represents instructions used as delta
applying rules.
For now there are three types of copy instructions:
These are three different ways how full text representation bytes are
obtained.
version: 1.1.1 author: TMate Software Ltd. |
Field Summary | |
final public static int | COPY_FROM_NEW_DATA A type of an instruction that says that data must be copied
from the new data to the target view. | final public static int | COPY_FROM_SOURCE A type of an instruction that says that data must be copied
from the source view to the target one. | final public static int | COPY_FROM_TARGET A type of an instruction that says that data must be copied
from the target view to the target itself. | public int | length A length bytes to copy. | public int | offset An offset in the source from where the bytes
should be copied. | public int | type A type of this instruction. |
Method Summary | |
public String | toString() Gives a string representation of this object. | public static void | writeInt(ByteBuffer os, int i) Writes an integer to a byte buffer. | public static void | writeLong(ByteBuffer os, long i) Writes a long to a byte buffer. | public void | writeTo(ByteBuffer target) Wirtes this instruction to a byte buffer. |
COPY_FROM_NEW_DATA | final public static int COPY_FROM_NEW_DATA(Code) | | A type of an instruction that says that data must be copied
from the new data to the target view.
|
COPY_FROM_SOURCE | final public static int COPY_FROM_SOURCE(Code) | | A type of an instruction that says that data must be copied
from the source view to the target one.
|
COPY_FROM_TARGET | final public static int COPY_FROM_TARGET(Code) | | A type of an instruction that says that data must be copied
from the target view to the target itself.
|
length | public int length(Code) | | A length bytes to copy.
|
offset | public int offset(Code) | | An offset in the source from where the bytes
should be copied. Instruction offsets are relative to the bounds of
views, i.e. a source/target view is a window of bytes (specified in a concrete
diff window) in the source/target stream (this can be a file, a buffer).
|
type | public int type(Code) | | A type of this instruction.
|
SVNDiffInstruction | public SVNDiffInstruction(int t, int l, int o)(Code) | | Creates a particular type of a diff instruction.
Instruction offsets are relative to the bounds of views, i.e.
a source/target view is a window of bytes (specified in a concrete
diff window) in the source/target stream (this can be a file, a buffer).
Parameters: t - a type of an instruction Parameters: l - a number of bytes to copy Parameters: o - an offset in the source (which may be a source or a targetview, or a new data stream) from wherethe bytes are to be copied See Also: SVNDiffWindow |
SVNDiffInstruction | public SVNDiffInstruction()(Code) | | Creates a new instruction object.
It's the instruction for the empty contents file.
|
toString | public String toString()(Code) | | Gives a string representation of this object.
a string representation of this object |
writeInt | public static void writeInt(ByteBuffer os, int i)(Code) | | Writes an integer to a byte buffer.
Parameters: os - a byte buffer to write to Parameters: i - an integer to write |
writeLong | public static void writeLong(ByteBuffer os, long i)(Code) | | Writes a long to a byte buffer.
Parameters: os - a byte buffer to write to Parameters: i - a long number to write |
writeTo | public void writeTo(ByteBuffer target)(Code) | | Wirtes this instruction to a byte buffer.
Parameters: target - a byte buffer to write to |
|
|