类 java.util.zip.CRC32
java.lang.Object
|
+----java.util.zip.CRC32
- public class CRC32
- extends Object
- implements Checksum
用于计算数据流的 CRC-32 的类。
- 参见:
- Checksum
构造子索引
- CRC32()
-
方法索引
- getValue()
- 返回 CRC-32 值。
- reset()
- 复位 CRC-32 到初始值。
- update(byte[])
- 用指定的字节数组更新 CRC-32 。
- update(byte[], int, int)
- 用指定的字节数组更新 CRC-32 。
- update(int)
- 用指定的字节更新 CRC-32 。
构造子
CRC32
public CRC32()
方法
update
public void update(int b)
- 用指定的字节更新 CRC-32 。
update
public native void update(byte b[],
int off,
int len)
- 用指定的字节数组更新 CRC-32 。
update
public void update(byte b[])
- 用指定的字节数组更新 CRC-32 。
reset
public void reset()
- 复位 CRC-32 到初始值。
getValue
public long getValue()
- 返回 CRC-32 值。