| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.nothome.delta.Checksum
public class Checksum
Checksum computation class.
| Constructor Summary | |
|---|---|
| Checksum(SeekableSource source,
         int chunkSize)Initialize checksums for source. | |
| Method Summary | |
|---|---|
|  int | findChecksumIndex(long hashf)Finds the index of a checksum. | 
| static char[] | getSingleHash()256 random hash values. | 
| static long | incrementChecksum(long checksum,
                  byte out,
                  byte in,
                  int chunkSize)Increments a checksum. | 
| static long | queryChecksum(ByteBuffer bb,
              int len)Finds the checksum computed from the buffer. | 
|  String | toString()Returns a debug String. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public Checksum(SeekableSource source,
                int chunkSize)
         throws IOException
chunkSize bytes at offset
 chunkSize * i is inserted into a hash map.
IOException| Method Detail | 
|---|
public static long queryChecksum(ByteBuffer bb,
                                 int len)
public static long incrementChecksum(long checksum,
                                     byte out,
                                     byte in,
                                     int chunkSize)
checksum - initial checksumout - byte leaving viewin - byte entering viewchunkSize - size of chunks
public static char[] getSingleHash()
public int findChecksumIndex(long hashf)
public String toString()
String.
toString in class Object| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||