Package com.drew.tools
Class ProcessAllImagesInFolderUtility.FileHandlerBase
java.lang.Object
com.drew.tools.ProcessAllImagesInFolderUtility.FileHandlerBase
- All Implemented Interfaces:
ProcessAllImagesInFolderUtility.FileHandler
- Direct Known Subclasses:
ProcessAllImagesInFolderUtility.BasicFileHandler,ProcessAllImagesInFolderUtility.MarkdownTableOutputHandler,ProcessAllImagesInFolderUtility.TextFileOutputHandler,ProcessAllImagesInFolderUtility.UnknownTagHandler
- Enclosing class:
- ProcessAllImagesInFolderUtility
abstract static class ProcessAllImagesInFolderUtility.FileHandlerBase
extends Object
implements ProcessAllImagesInFolderUtility.FileHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate longprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetExtension(File file) voidonBeforeExtraction(File file, PrintStream log, String relativePath) Called before extraction is performed onfilePath.voidonExtractionError(File file, Throwable throwable, PrintStream log) Called when extraction onfilePathresulted in an exception.voidonExtractionSuccess(File file, Metadata metadata, String relativePath, PrintStream log) Called when extraction onfilePathcompleted without an exception.voidCalled when all files have been processed.voidonStartingDirectory(File directoryPath) Called when the scan is about to start processing files in directorypath.booleanshouldProcess(File file) Called to determine whether the implementation should processfilePath.
-
Field Details
-
_supportedExtensions
-
_processedFileCount
private int _processedFileCount -
_exceptionCount
private int _exceptionCount -
_errorCount
private int _errorCount -
_processedByteCount
private long _processedByteCount
-
-
Constructor Details
-
FileHandlerBase
FileHandlerBase()
-
-
Method Details
-
onStartingDirectory
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled when the scan is about to start processing files in directorypath.- Specified by:
onStartingDirectoryin interfaceProcessAllImagesInFolderUtility.FileHandler
-
shouldProcess
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled to determine whether the implementation should processfilePath.- Specified by:
shouldProcessin interfaceProcessAllImagesInFolderUtility.FileHandler
-
onBeforeExtraction
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled before extraction is performed onfilePath.- Specified by:
onBeforeExtractionin interfaceProcessAllImagesInFolderUtility.FileHandler
-
onExtractionError
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled when extraction onfilePathresulted in an exception.- Specified by:
onExtractionErrorin interfaceProcessAllImagesInFolderUtility.FileHandler
-
onExtractionSuccess
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled when extraction onfilePathcompleted without an exception.- Specified by:
onExtractionSuccessin interfaceProcessAllImagesInFolderUtility.FileHandler
-
onScanCompleted
Description copied from interface:ProcessAllImagesInFolderUtility.FileHandlerCalled when all files have been processed.- Specified by:
onScanCompletedin interfaceProcessAllImagesInFolderUtility.FileHandler
-
getExtension
-