Interface ProcessAllImagesInFolderUtility.FileHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onBeforeExtraction​(java.io.File file, java.io.PrintStream log, java.lang.String relativePath)
      Called before extraction is performed on filePath.
      void onExtractionError​(java.io.File file, java.lang.Throwable throwable, java.io.PrintStream log)
      Called when extraction on filePath resulted in an exception.
      void onExtractionSuccess​(java.io.File file, Metadata metadata, java.lang.String relativePath, java.io.PrintStream log)
      Called when extraction on filePath completed without an exception.
      void onScanCompleted​(java.io.PrintStream log)
      Called when all files have been processed.
      void onStartingDirectory​(java.io.File directoryPath)
      Called when the scan is about to start processing files in directory path.
      boolean shouldProcess​(java.io.File file)
      Called to determine whether the implementation should process filePath.
    • Method Detail

      • onStartingDirectory

        void onStartingDirectory​(java.io.File directoryPath)
        Called when the scan is about to start processing files in directory path.
      • shouldProcess

        boolean shouldProcess​(java.io.File file)
        Called to determine whether the implementation should process filePath.
      • onBeforeExtraction

        void onBeforeExtraction​(java.io.File file,
                                java.io.PrintStream log,
                                java.lang.String relativePath)
        Called before extraction is performed on filePath.
      • onExtractionSuccess

        void onExtractionSuccess​(java.io.File file,
                                 Metadata metadata,
                                 java.lang.String relativePath,
                                 java.io.PrintStream log)
        Called when extraction on filePath completed without an exception.
      • onExtractionError

        void onExtractionError​(java.io.File file,
                               java.lang.Throwable throwable,
                               java.io.PrintStream log)
        Called when extraction on filePath resulted in an exception.
      • onScanCompleted

        void onScanCompleted​(java.io.PrintStream log)
        Called when all files have been processed.