de.hillenbrand.io
Class FileNotification

java.lang.Object
  extended by de.hillenbrand.io.FileNotification

public class FileNotification
extends java.lang.Object

A class that notifies when a file (or a directory) has been changed.


Field Summary
static long DEFAULT_INTERVAL
           
protected  long interval
           
 
Constructor Summary
FileNotification(java.io.File f, FileChangeListener l)
           
FileNotification(java.lang.String filename, FileChangeListener l)
           
 
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 arg)
          Assigns the value of the file property.
 void setInterval(long arg)
          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
 

Field Detail

DEFAULT_INTERVAL

public static long DEFAULT_INTERVAL

interval

protected long interval
Constructor Detail

FileNotification

public FileNotification(java.io.File f,
                        FileChangeListener l)

FileNotification

public FileNotification(java.lang.String filename,
                        FileChangeListener l)
Method Detail

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 arg)
Assigns the value of the file property.


setInterval

public void setInterval(long arg)
Sets the interval (in ms) between the file checks.