DigestCalculator
public
class
DigestCalculator
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.cache.DigestCalculator
|
Utility methods to compute Digest
.
Summary
Public methods |
static
Digest
|
compute(Message message)
Computes a digest for a proto message.
|
static
Digest
|
compute(File file)
Computes a digest for a file.
|
static
Digest
|
compute(byte[] blob)
Computes a digest for a byte array.
|
Fields
DIGEST_FUNCTION
public static final DigestFunction.Value DIGEST_FUNCTION
Public constructors
DigestCalculator
public DigestCalculator ()
Public methods
compute
public static Digest compute (Message message)
Computes a digest for a proto message.
Parameters |
message |
Message : the Message that the digest is calculated for |
Returns |
Digest |
the Digest of the message |
compute
public static Digest compute (File file)
Computes a digest for a file.
Parameters |
file |
File : the ERROR(/File) that the digest is calculated for |
Returns |
Digest |
the Digest of the file |
compute
public static Digest compute (byte[] blob)
Computes a digest for a byte array.
Parameters |
blob |
byte : the byte array that the digest is calculated for |
Returns |
Digest |
the Digest of the blob |