Interface ExecutionStrategy

    • Method Detail

      • execute

        void execute​(CommandExecutor executor,
                     String exifTool,
                     List<String> arguments,
                     OutputHandler handler)
              throws IOException
        Execute exiftool command.
        Parameters:
        executor - ExifTool withExecutor.
        exifTool - ExifTool withPath.
        arguments - Command line arguments.
        handler - Handler to read command output.
        Throws:
        IOException - If an error occurred during execution.
      • isRunning

        boolean isRunning()
        Check if exiftool process is currently running. This method is important especially if stay_open flag has been enabled.
        Returns:
        true if exiftool process is currently open, false otherwise.
      • isSupported

        boolean isSupported​(Version version)
        Check if this strategy should is supported with this specific version.
        Parameters:
        version - ExifTool Version.
        Returns:
        true if this strategy may be used safely with this specific version, false otherwise.
      • shutdown

        void shutdown()
               throws Exception
        Shutdown the strategy.
        Throws:
        Exception - If an error occurred while stopping exiftool client.