Adler : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

Adler digest
A 32-bit checksum/digest that is almost as reliable in detecting changes as a CRC-32, but is much quicker to compute: Consider using an Adlerian digest for your hashCode when you can reduce the key part of your object to a long string of bytes.

Beware Adler32.update ( int )! It accepts only an unsigned 8-bit byte packed in the low order bits of an int. You can’t feed update() a 32-bit int.

Adler-32 has a weakness for very short messages. For very short packets, Adler-32 is guaranteed to give poor coverage of the available bits.

If you need a shorter value, take the modulus by a prime. Don’t just sample the low order bits.

Learning More

Oracle’s Javadoc on Adler32 class : available:

This page is posted
on the web at:

http://mindprod.com/jgloss/adler.html

Optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\adler.html
Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

IP:[65.110.21.43]
Your face IP:[54.198.118.102]
You are visitor number