Lines Matching refs:distance
19 * is the delta distance, which you should set to match your data.
22 * For example, with distance = 2 and eight-byte input
31 * Smallest supported delta calculation distance.
36 * Largest supported delta calculation distance.
40 private int distance = DISTANCE_MIN;
43 * Creates new Delta options and sets the delta distance to 1 byte.
48 * Creates new Delta options and sets the distance to the given value.
50 public DeltaOptions(int distance) throws UnsupportedOptionsException {
51 setDistance(distance);
55 * Sets the delta distance in bytes. The new distance must be in
58 public void setDistance(int distance) throws UnsupportedOptionsException {
59 if (distance < DISTANCE_MIN || distance > DISTANCE_MAX)
61 "Delta distance must be in the range [" + DISTANCE_MIN
62 + ", " + DISTANCE_MAX + "]: " + distance);
64 this.distance = distance;
68 * Gets the delta distance.
71 return distance;
87 return new DeltaInputStream(in, distance);