| |
|
| javax.swing.JFrame snow.watchdog.WatchDog
WatchDog | final public class WatchDog extends JFrame (Code) | | Utility to observe some file / folders / urls for modifications.
VERY useful.
|
Inner Class :static class WatchedData implements Comparable<WatchedData> | |
Inner Class :static class SF | |
Inner Class :class WatcherEditor extends JDialog | |
mod | final WatchedDataTable mod(Code) | | |
standalone | static boolean standalone(Code) | | |
computeHashForURLContent | public static long computeHashForURLContent(URL url) throws Exception(Code) | | Tricky. tricky.
IF the url last modified exists => returns it as is.
IF the content length exists => returns it.
otherwise, reads the whole content and return the length.
this may only be used as a simple hash to detect changes.
|
installTrayIfNecessary | public static void installTrayIfNecessary()(Code) | | Only if active watchers are present.
Should be called at each changes.
|
lookIfActiveWatchersArePresent | public static boolean lookIfActiveWatchersArePresent()(Code) | | Helper...
|
watch | void watch()(Code) | | Called from time to time (10 sec).
|
|
|
|