Class PollHotFolderListener

java.lang.Object
org.cip4.jdflib.util.hotfolder.PollHotFolderListener
All Implemented Interfaces:
HotFolderListener

public class PollHotFolderListener extends Object implements HotFolderListener
  • Constructor Details

    • PollHotFolderListener

      public PollHotFolderListener(IPollHandler theHandler)
      Parameters:
      theHandler - the poll handler to watch this folder with
  • Method Details

    • 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:
    • getUrl

      protected String getUrl(File hotFile)
      get a URL for the HotFile default: use the hotfolder Name
      Parameters:
      hotFile -
      Returns: