---------------------------- CRC32 | ---------------------------- # Ñ»·ÈßÓà¼ì²é * ÔÚÊý¾Ý´æ´¢ºÍÊý¾ÝͨѶÁìÓò, ΪÁ˱£Ö¤Êý¾ÝµÄÕýÈ·, ²»µÃ²»²ÉÓüì´íµÄËã·¨ # ¹¹Ô캯Êý public CRC32() # ʵÀýº¯Êý void update(int b) void update(byte[] b, int off, int len) void update(byte[] b) void update(ByteBuffer buffer) * Ìí¼ÓУÑéÊý¾Ý void reset() * ÖØÖÃУÑé long getValue() * »ñÈ¡¼ÆËã³öµÄcrc32Öµ # demo CRC32 crc32 = new CRC32(); crc32.update(new byte[]{0,0,0,0,0,0}); long value = crc32.getValue(); System.out.println(value);