public class Digest extends Object
digest.txt file and the computing and processing of MD5 digests for an
application.| Modifier and Type | Field and Description |
|---|---|
static String |
DIGEST_FILE
The name of our MD5 digest file.
|
| Constructor and Description |
|---|
Digest(File appdir)
Creates a digest instance which will parse and validate the
digest.txt in the
supplied application directory. |
| Modifier and Type | Method and Description |
|---|---|
static void |
createDigest(List<Resource> resources,
File output)
Creates a digest file at the specified location using the supplied list of resources.
|
static MessageDigest |
getMessageDigest()
Obtains an appropriate message digest instance for use by the Getdown system.
|
String |
getMetaDigest()
Returns the digest for the digest file.
|
boolean |
validateResource(Resource resource,
ProgressObserver obs)
Computes the MD5 hash of the specified resource and compares it with the value parsed from
the digest file.
|
public static final String DIGEST_FILE
public Digest(File appdir) throws IOException
digest.txt in the
supplied application directory.IOExceptionpublic String getMetaDigest()
public boolean validateResource(Resource resource, ProgressObserver obs)
public static void createDigest(List<Resource> resources, File output) throws IOException
IOExceptionpublic static MessageDigest getMessageDigest()
Copyright © 2015. All rights reserved.