de.hillenbrand.io
Class FileNotification
java.lang.Object
de.hillenbrand.io.FileNotification
public class FileNotification
- extends java.lang.Object
A class that notifies when a file (or a directory) has been changed.
Method Summary |
java.io.File |
getFile()
Returns the value of the file property. |
long |
getInterval()
Returns the interval (in ms) between the file checks. |
void |
setFile(java.io.File f)
Assigns the value of the file property. |
void |
setInterval(long ms)
Sets the interval (in ms) between the file checks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_INTERVAL
public static int DEFAULT_INTERVAL
file
protected java.io.File file
interval
protected long interval
FileNotification
public FileNotification(java.io.File f,
FileChangeListener l)
FileNotification
public FileNotification(java.lang.String filename,
FileChangeListener l)
getFile
public java.io.File getFile()
- Returns the value of the file property.
getInterval
public long getInterval()
- Returns the interval (in ms) between the file checks.
setFile
public void setFile(java.io.File f)
- Assigns the value of the file property.
setInterval
public void setInterval(long ms)
- Sets the interval (in ms) between the file checks.