public class Adler32 extends Object implements Checksum
通过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)
remaining()
字节从缓冲区。
position()
返回后,缓冲区的位置将被更新到极限;极限已经不会改变。
buffer
-缓冲区更新校验和
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.