| 程序包 | 说明 |
|---|---|
| org.apache.ratis.io | |
| org.apache.ratis.util |
| 限定符和类型 | 方法和说明 |
|---|---|
static MD5Hash |
MD5Hash.digest(byte[] data)
Construct a hash value for a byte array.
|
static MD5Hash |
MD5Hash.digest(byte[][] dataArr,
int start,
int len)
Construct a hash value for an array of byte array.
|
static MD5Hash |
MD5Hash.digest(byte[] data,
int start,
int len)
Construct a hash value for a byte array.
|
static MD5Hash |
MD5Hash.digest(InputStream in)
Construct a hash value for the content from the InputStream.
|
static MD5Hash |
MD5Hash.read(DataInput in)
Constructs, reads and returns an instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
MD5Hash.set(MD5Hash that)
Copy the contents of another instance into this instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static MD5Hash |
MD5FileUtil.computeMd5ForFile(File dataFile)
Read dataFile and compute its MD5 checksum.
|
static MD5Hash |
MD5FileUtil.readStoredMd5ForFile(File dataFile)
Read the md5 checksum stored alongside the given data file.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
MD5FileUtil.saveMD5File(File dataFile,
MD5Hash digest)
Save the ".md5" file that lists the md5sum of another file.
|
static void |
MD5FileUtil.verifySavedMD5(File dataFile,
MD5Hash expectedMD5)
Verify that the previously saved md5 for the given file matches
expectedMd5.
|
Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.