org.nees.util
Class FileWaiter

java.lang.Object
  extended byjava.util.Observable
      extended byorg.nees.util.Waiter
          extended byorg.nees.util.FileWaiter

public class FileWaiter
extends Waiter

Waits for a file to come into existence.


Constructor Summary
FileWaiter(java.io.File f, long pollingInterval)
           
 
Method Summary
 boolean checkCondition()
          Check the condition.
 
Methods inherited from class org.nees.util.Waiter
startWaiting, stopWaiting, waitForCondition
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileWaiter

public FileWaiter(java.io.File f,
                  long pollingInterval)
Parameters:
f - a file that may not exist yet.
Method Detail

checkCondition

public boolean checkCondition()
Check the condition. Return true if the condition has been met, false otherwise.

Specified by:
checkCondition in class Waiter