|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.aragost.io.FilePoller
Constructor Summary | |
FilePoller(java.io.File file)
|
|
FilePoller(java.lang.String name)
Creates new FilePoller |
Method Summary | |
void |
addFilePollerListener(FilePollerListener listener)
Registers FilePollerListener to receive events. |
boolean |
exists()
|
void |
finalize()
|
java.io.File |
getFile()
Getter for property file. |
java.lang.String |
getName()
|
int |
getPollingInterval()
Getter for property pollingInterval. |
long |
lastModified()
|
long |
length()
|
void |
removeFilePollerListener(FilePollerListener listener)
Removes FilePollerListener from the list of listeners. |
void |
setPollingInterval(int pollingInterval)
Setter for property pollingInterval. |
void |
startPolling()
|
void |
stopPolling()
|
void |
waitForNextCycle()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FilePoller(java.lang.String name)
public FilePoller(java.io.File file)
Method Detail |
public void finalize()
finalize
in class java.lang.Object
public java.lang.String getName()
public java.io.File getFile()
public boolean exists()
public long lastModified()
public long length()
public void startPolling()
public void stopPolling()
public void waitForNextCycle()
public int getPollingInterval()
public void setPollingInterval(int pollingInterval)
pollingInterval
- New value of property pollingInterval.public void addFilePollerListener(FilePollerListener listener)
listener
- The listener to register.public void removeFilePollerListener(FilePollerListener listener)
listener
- The listener to remove.
|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |