code: public static void main (String args[])
    {
      // Create the monitor
      FileMonitor monitor = new FileMonitor (1000);
  
      // Add some files to listen for
      monitor.addFile (new File ("/Users/garth/cloudhopper/dev/utility/java/ch-commons-io/trunk/tmp/"));
      //monitor.addFile (new File ("/home/jacob/test2.txt"));
      //monitor.addFile (new File ("/home/jacob/"));    
  
      // Add a dummy listener
      monitor.addListener (monitor.new TestListener());
  
      // Avoid program exit
      while (!false) ;
    }
docs: Test this class.
  
  @param args  Not used.