Class StopHandler

java.lang.Object
com.thebuzzmedia.exiftool.core.handlers.StopHandler
All Implemented Interfaces:
StreamVisitor, OutputHandler

public class StopHandler extends Object implements OutputHandler
Check if line means it is the end of the stream. End is detected if:
  • Line is null.
  • Output is strictly equals to {ready}.
This handler is thread safe, stateless and is implemented as a singleton.
  • Method Details

    • stopHandler

      public static StopHandler stopHandler()
      Get instance.
      Returns:
      Singleton instance.
    • readLine

      public boolean readLine(String line)
      Description copied from interface: OutputHandler
      Read a line from command output. Returned value is a boolean: it should indicate if next line should be read or if output is finished.
      Specified by:
      readLine in interface OutputHandler
      Specified by:
      readLine in interface StreamVisitor
      Parameters:
      line - Line output.
      Returns:
      Boolean indicating if next line should be read.