Package io.milton.zsync
Class Configuration
java.lang.Object
io.milton.zsync.Configuration
- All Implemented Interfaces:
Serializable,Cloneable
A Configuration is a mere collection of objects and values that
compose a particular configuration for the algorithm, for example the
message digest that computes the strong checksum.
Usage of a Configuration involves setting the member fields of
this object to thier appropriate values; thus, it is up to the
programmer to specify the strongSum, weakSum,
blockLength and strongSumLength to be used. The
other fields are optional.
- Version:
- $Revision: 1.9 $
- Author:
- Casey Marshall
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default block size.intThe length of blocks to checksum.byte[]The seed for the checksum, to perturb the strong checksum and help avoid collisions in plain rsync (or in similar applicaitons).static final intThe default chunk size.intThe maximum size of byte arrays to create, when they are needed.booleanWhether or not to do run-length encoding when making Deltas.The message digest that computes the stronger checksum.intThe effective length of the strong sum.The rolling checksum. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BLOCK_LENGTH
public static final int BLOCK_LENGTHThe default block size.- See Also:
-
CHUNK_SIZE
public static final int CHUNK_SIZEThe default chunk size.- See Also:
-
strongSum
The message digest that computes the stronger checksum. -
weakSum
The rolling checksum. -
blockLength
public int blockLengthThe length of blocks to checksum. -
strongSumLength
public int strongSumLengthThe effective length of the strong sum. -
doRunLength
public boolean doRunLengthWhether or not to do run-length encoding when making Deltas. -
checksumSeed
public byte[] checksumSeedThe seed for the checksum, to perturb the strong checksum and help avoid collisions in plain rsync (or in similar applicaitons). -
chunkSize
public int chunkSizeThe maximum size of byte arrays to create, when they are needed. This vale defaults to 32 kilobytes.
-
-
Constructor Details
-
Configuration
public Configuration()
-
-
Method Details