|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.util.zip.Adler32
public class Adler32
可用於計算資料串流的 Adler-32 校驗和的類別。Adler-32 校驗和幾乎與 CRC-32 一樣可靠,但是能夠更快地計算出來。
Checksum| 建構子摘要 | |
|---|---|
Adler32()
創建新的 Adler32 物件。 |
|
| 方法摘要 | |
|---|---|
long |
getValue()
返回校驗和值。 |
void |
reset()
將校驗和重置為初始值。 |
void |
update(byte[] b)
使用指定的位元組陣列更新校驗和。 |
void |
update(byte[] b,
int off,
int len)
使用指定的位元組陣列更新校驗和。 |
void |
update(int b)
使用指定位元組更新校驗和。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public Adler32()
| 方法詳細資訊 |
|---|
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)
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。