|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
lazyj.DateFileWatchdog
public final class DateFileWatchdog
This class monitors a specified File for a change and notifies back when the file on disk has changed. It is based on the last modification time of the file.
| Constructor Summary | |
|---|---|
DateFileWatchdog(java.io.File f,
long howOften)
Create a watcher for a given file |
|
DateFileWatchdog(java.lang.String fileName,
long howOften)
Create a watcher for a given file name |
|
| Method Summary | |
|---|---|
protected void |
finalize()
|
java.io.File |
getFile()
Get the file that is monitored for changes |
void |
setChanged()
|
void |
stopIt()
Stop monitoring this file for changes |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateFileWatchdog(java.lang.String fileName,
long howOften)
throws java.lang.Exception
fileName - path to the file to monitorhowOften - How often to verify for a change ( in millis )
java.lang.Exception
public DateFileWatchdog(java.io.File f,
long howOften)
throws java.lang.Exception
f - howOften - -
How often to verify for a change ( in millis )
java.lang.Exception| Method Detail |
|---|
public java.io.File getFile()
public void stopIt()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void setChanged()
setChanged in class java.util.Observable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||