Class StopHandler
java.lang.Object
com.thebuzzmedia.exiftool.core.handlers.StopHandler
- All Implemented Interfaces:
StreamVisitor
,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}
.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Read a line from command output.static StopHandler
Get instance.
-
Method Details
-
stopHandler
Get instance.- Returns:
- Singleton instance.
-
readLine
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 interfaceOutputHandler
- Specified by:
readLine
in interfaceStreamVisitor
- Parameters:
line
- Line output.- Returns:
- Boolean indicating if next line should be read.
-