|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.getdown.data.Digest
public class Digest
Manages the digest.txt file and the computing and processing of MD5 digests for an
application.
| Field Summary | |
|---|---|
static String |
DIGEST_FILE
The name of our MD5 digest file. |
| Constructor Summary | |
|---|---|
Digest(File appdir)
Creates a digest instance which will parse and validate the digest.txt in the
supplied application directory. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIGEST_FILE
| Constructor Detail |
|---|
public Digest(File appdir)
throws IOException
digest.txt in the
supplied application directory.
IOException| Method Detail |
|---|
public String getMetaDigest()
public boolean validateResource(Resource resource,
ProgressObserver obs)
public static void createDigest(List<Resource> resources,
File output)
throws IOException
IOExceptionpublic static MessageDigest getMessageDigest()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||