Deflater getAdler() function in Java with examples
The getAdler() function of the Deflater class in java.util.zip returns the Adler-32 value of the uncompressed data. Adler-32 is a checksum algorithm which is widely used zlib compression library.
public int getAdler()
Parameter: The function requires no parameter
Return Type: The function returns an Integer value which is the Adler-32 value of the uncompressed data.
Exception: The function does not throw any exception
Compressed String :x?sOM?.N?/r???q?? Size 21 Original String :GeeksforGeeksGeeksforGeeksGeeksforGeeksGeeksforGeeks Size 52 Adler-32 value :511972501
Attention reader! Don’t stop learning now. Get hold of all the important Java Foundation and Collections concepts with the Fundamentals of Java and Java Collections Course at a student-friendly price and become industry ready. To complete your preparation from learning a language to DS Algo and many more, please refer Complete Interview Preparation Course.