Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Adler32 Repeating Very Quickly
  2. String dbIdStr = Long.toString(dbId);
  3. byte[] bytes = dbIdStr.getBytes();
  4. Checksum checksum = new Adler32();
  5. checksum.update(bytes, 0, bytes.length);
  6. result = checksum.getValue();