public class Adler32 extends Object implements Checksum
将null
参数传递给null
中的方法将导致抛出NullPointerException
。
Checksum
Constructor and Description |
---|
Adler32()
创建一个新的Adler32对象。
|
public void update(int b)
public void update(byte[] b, int off, int len)
update
在界面
Checksum
b
- 用于更新校验和的字节数组
off
- 数据的起始偏移量
len
- 用于更新的字节数
ArrayIndexOutOfBoundsException
- 如果
off
为负数,或
len
为负数,或
off+len
大于数组长度
b
public void update(byte[] b)
b
- 用于更新校验和的字节数组
public void update(ByteBuffer buffer)
buffer
- ByteBuffer用以更新校验和
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.