org.cip4.jdflib.util.hotfolder
Class PollHotFolderListener
java.lang.Object
org.cip4.jdflib.util.hotfolder.PollHotFolderListener
- All Implemented Interfaces:
- HotFolderListener
public class PollHotFolderListener
- extends Object
- implements HotFolderListener
- Author:
- rainer prosi
|
Method Summary |
protected String |
getUrl(File hotFile)
get a URL for the HotFile default: use the hotfolder Name |
boolean |
hotFile(File hotFile)
this interface function is called whenever a new or modified file has stabilized in the hotFolder
note: make sure to close all streams so that deleting temp files does not fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PollHotFolderListener
public PollHotFolderListener(IPollHandler theHandler)
- Parameters:
theHandler - the poll handler to watch this folder with
hotFile
public boolean hotFile(File hotFile)
- Description copied from interface:
HotFolderListener
- this interface function is called whenever a new or modified file has stabilized in the hotFolder
note: make sure to close all streams so that deleting temp files does not fail
- Specified by:
hotFile in interface HotFolderListener
- Parameters:
hotFile -
- Returns:
- true if all went well, else false
- See Also:
HotFolderListener.hotFile(java.io.File)
getUrl
protected String getUrl(File hotFile)
- get a URL for the HotFile default: use the hotfolder Name
- Parameters:
hotFile -
- Returns:
Copyright © 2013. All Rights Reserved.