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.


Nested Class Summary
protected static class FileNotification.CheckThread
           
protected static class FileNotification.DelayedQueueEntry
           
 
Field Summary
static int DEFAULT_INTERVAL
           
protected  java.io.File file
           
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 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
 

Field Detail

DEFAULT_INTERVAL

public static int DEFAULT_INTERVAL

file

protected java.io.File file

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


setInterval

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