org.metastatic.rsync
Interface Delta

All Known Implementing Classes:
DataBlock, Offsets

public interface Delta

A Delta is, in the Rsync algorithm, one of two things: (1) a block of bytes and an offset, or (2) a pair of offsets, one old and one new.

See Also:
DataBlock, Offsets

Method Summary
 int getBlockLength()
          The size of the block of data this class represents.
 long getWriteOffset()
          Get the offset at which this Delta should be written.
 

Method Detail

getBlockLength

public int getBlockLength()
The size of the block of data this class represents.

Returns:
The size of the block of data this class represents.
Since:
1.1

getWriteOffset

public long getWriteOffset()
Get the offset at which this Delta should be written.

Returns:
The write offset.
Since:
1.2