Interface IFileSource


  • public interface IFileSource
    A callback interface that provides files to be converted just-in-time.
    • Method Detail

      • getFile

        File getFile()
        Invoked when the converter requests a file for conversion. If this callback throws an exception, the conversion will be marked as unsuccessful and the exception is rethrown on any invocation of the resulting future's Future.get() method.
        Returns:
        The file to be converted.
      • onConsumed

        void onConsumed​(File file)
        Called when the file was consumed and is not longer required by the converter. The file must not be removed from the file system before this method is called. If this callback throws an exception, the conversion will be marked as unsuccessful and the exception is rethrown on any invocation of the resulting future's Future.get() method.
        Parameters:
        file - The file to be converted.