wt.content
Class ChecksumHelper
java.lang.Object
wt.content.ChecksumHelper
- public class ChecksumHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ChecksumHelper
public ChecksumHelper()
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)