Package org.cip4.jdflib.util.hotfolder
Class PollHotFolderListener
- java.lang.Object
-
- org.cip4.jdflib.util.hotfolder.PollHotFolderListener
-
- All Implemented Interfaces:
HotFolderListener
public class PollHotFolderListener extends java.lang.Object implements HotFolderListener
-
-
Constructor Summary
Constructors Constructor Description PollHotFolderListener(IPollHandler theHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetUrl(java.io.File hotFile)get a URL for the HotFile default: use the hotfolder NamebooleanhotFile(java.io.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
-
-
-
Constructor Detail
-
PollHotFolderListener
public PollHotFolderListener(IPollHandler theHandler)
- Parameters:
theHandler- the poll handler to watch this folder with
-
-
Method Detail
-
hotFile
public boolean hotFile(java.io.File hotFile)
Description copied from interface:HotFolderListenerthis 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:
hotFilein interfaceHotFolderListener- Parameters:
hotFile-- Returns:
- true if all went well, else false
- See Also:
HotFolderListener.hotFile(java.io.File)
-
getUrl
protected java.lang.String getUrl(java.io.File hotFile)
get a URL for the HotFile default: use the hotfolder Name- Parameters:
hotFile-- Returns:
-
-