public class IntegrityCheckAssistant extends Object implements IIntegrityCheckAssistant
The integrity check (MD5, CRC) assistant.
Constructor and Description |
---|
IntegrityCheckAssistant()
Initializes a new instance of the
IntegrityCheckAssistant class. |
IntegrityCheckAssistant(Crc32 crcAlgorithmProvider)
Initializes a new instance of the
IntegrityCheckAssistant class. |
Modifier and Type | Method and Description |
---|---|
void |
addHashedChunkDescriptor(FileChunkReference chunkRef,
byte[] md5Hash)
Adds MD5 hash for property set.
|
boolean |
checkCrc(byte[] buffer,
long crcValue)
Checks CRC.
|
boolean |
checkMd5(byte[] buffer,
byte[] md5Hash)
Checks MD5.
|
long |
computeCrc(byte[] buffer)
Computes CRC.
|
byte[] |
computeMd5(byte[] buffer)
Computes MD5.
|
byte[] |
getHashedChunkDescriptor(FileChunkReference chunkRef)
Gets MD5 hash for property set.
|
public IntegrityCheckAssistant()
Initializes a new instance of the IntegrityCheckAssistant
class.
public IntegrityCheckAssistant(Crc32 crcAlgorithmProvider)
Initializes a new instance of the IntegrityCheckAssistant
class.
public boolean checkCrc(byte[] buffer, long crcValue)
Checks CRC.
checkCrc
in interface IIntegrityCheckAssistant
public long computeCrc(byte[] buffer)
Computes CRC.
computeCrc
in interface IIntegrityCheckAssistant
public boolean checkMd5(byte[] buffer, byte[] md5Hash)
Checks MD5.
checkMd5
in interface IIntegrityCheckAssistant
public byte[] computeMd5(byte[] buffer)
Computes MD5.
computeMd5
in interface IIntegrityCheckAssistant
public void addHashedChunkDescriptor(FileChunkReference chunkRef, byte[] md5Hash)
Adds MD5 hash for property set.
addHashedChunkDescriptor
in interface IIntegrityCheckAssistant
public byte[] getHashedChunkDescriptor(FileChunkReference chunkRef)
Gets MD5 hash for property set.
getHashedChunkDescriptor
in interface IIntegrityCheckAssistant
Copyright (c) 2016 Aspose. All Rights Reserved.