|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.zip.CRC32
public class CRC32
可用於計算資料串流的 CRC-32 的類別。
Checksum| 建構子摘要 | |
|---|---|
CRC32()
創建新的 CRC32 物件。 |
|
| 方法摘要 | |
|---|---|
long |
getValue()
返回 CRC-32 值。 |
void |
reset()
將 CRC-32 重置為初始值。 |
void |
update(byte[] b)
使用指定的位元組陣列更新校驗和。 |
void |
update(byte[] b,
int off,
int len)
使用指定的位元組陣列更新 CRC-32。 |
void |
update(int b)
使用指定位元組更新 CRC-32。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public CRC32()
| 方法詳細資訊 |
|---|
public void update(int b)
Checksum 中的 updateb - 更新校驗和要使用的位元組
public void update(byte[] b,
int off,
int len)
Checksum 中的 updateb - 更新校驗和要使用的位元組陣列off - 資料的初始偏移量len - 用於更新的位元組數public void update(byte[] b)
b - 更新校驗和使用的位元組陣列public void reset()
Checksum 中的 resetpublic long getValue()
Checksum 中的 getValue
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。