|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface Checksum
表示資料校驗和的介面。
| 方法摘要 | |
|---|---|
long |
getValue()
返回當前的校驗和值。 |
void |
reset()
將校驗和重置為其初始值。 |
void |
update(byte[] b,
int off,
int len)
使用指定的位元組陣列更新當前校驗和。 |
void |
update(int b)
使用指定位元組更新當前校驗和。 |
| 方法詳細資訊 |
|---|
void update(int b)
b - 更新校驗和要使用的位元組
void update(byte[] b,
int off,
int len)
b - 更新校驗和要使用的位元組陣列off - 資料的初始偏移量len - 用於更新的位元組數long getValue()
void reset()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。