Here you can find the source of getIntWithChecksum(ByteBuffer buffer, Adler32 checksum)
static int getIntWithChecksum(ByteBuffer buffer, Adler32 checksum)
//package com.java2s; //License from project: Apache License import java.nio.ByteBuffer; import java.util.zip.Adler32; public class Main { static int getIntWithChecksum(ByteBuffer buffer, Adler32 checksum) { final int value = buffer.getInt(); checksum.update(value);/* w w w .j a v a2 s .c o m*/ return value; } }