wt.content
Class ChecksumHelper

java.lang.Object
  extended bywt.content.ChecksumHelper

public class ChecksumHelper
extends Object


Field Summary
(package private) static int BUFFER_SIZE
           
(package private) static Class CHECKSUM_CLASS
           
(package private) static int DEFAULT_BUFFER_SIZE
           
(package private) static Class DEFAULT_CHECKSUM_CLASS
           
(package private) static FileAccess fileAccess
           
(package private) static boolean VERBOSE
           
 
Constructor Summary
ChecksumHelper()
           
 
Method Summary
static boolean checksumsMatch(File file, ApplicationData data)
           
static boolean checksumsMatch(String path, ApplicationData data)
           
static long getChecksum(File file)
           
static long getChecksum(String path)
           
private static Class getChecksumClass(String className)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHECKSUM_CLASS

static final Class DEFAULT_CHECKSUM_CLASS

fileAccess

static final FileAccess fileAccess

DEFAULT_BUFFER_SIZE

static final int DEFAULT_BUFFER_SIZE
See Also:
Constant Field Values

CHECKSUM_CLASS

static Class CHECKSUM_CLASS

VERBOSE

static boolean VERBOSE

BUFFER_SIZE

static int BUFFER_SIZE
Constructor Detail

ChecksumHelper

public ChecksumHelper()
Method Detail

getChecksum

public static final long getChecksum(String path)
                              throws FileNotFoundException
Throws:
FileNotFoundException

getChecksum

public static final long getChecksum(File file)
                              throws FileNotFoundException
Throws:
FileNotFoundException

checksumsMatch

public static final boolean checksumsMatch(String path,
                                           ApplicationData data)
                                    throws FileNotFoundException
Throws:
FileNotFoundException

checksumsMatch

public static final boolean checksumsMatch(File file,
                                           ApplicationData data)
                                    throws FileNotFoundException
Throws:
FileNotFoundException

getChecksumClass

private static final Class getChecksumClass(String className)

main

public static void main(String[] args)