Package net.sourceforge.jnlp.util
Class MD5SumWatcher
java.lang.Object
net.sourceforge.jnlp.util.MD5SumWatcher
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MD5SumWatcher
Create a new MD5SumWatcher instance- Parameters:
watchedFile
- the file to watch
-
-
Method Details
-
getSum
Get the current MD5 sum of the watched file- Returns:
- a byte array of the MD5 sum
- Throws:
FileNotFoundException
- if the watched file does not existIOException
- if the file cannot be read
-
update
Detect if the file's MD5 has changed and track its new sum if so- Returns:
- if the file's MD5 has changed since the last update
- Throws:
FileNotFoundException
- if the watched file does not existIOException
- if the file cannot be read
-