Package com.mindee.v2.cli
Class SplitCommand
- java.lang.Object
-
- com.mindee.v2.cli.BaseInferenceCommand
-
- com.mindee.v2.cli.SplitCommand
-
public class SplitCommand extends BaseInferenceCommand
CLI command for the V2 split utility.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mindee.v2.cli.BaseInferenceCommand
BaseInferenceCommand.OutputType
-
-
Constructor Summary
Constructors Constructor Description SplitCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommonResponseexecuteRequest(MindeeClient client, LocalInputSource inputSource)Executes the inference request and returns the product response.protected StringgetFullOutput(CommonResponse response)Returns the full (inference + options + result) string for the given response.protected StringgetSummary(CommonResponse response)Returns the summary (result-only) string for the given response.-
Methods inherited from class com.mindee.v2.cli.BaseInferenceCommand
call
-
-
-
-
Method Detail
-
executeRequest
protected CommonResponse executeRequest(MindeeClient client, LocalInputSource inputSource) throws Exception
Description copied from class:BaseInferenceCommandExecutes the inference request and returns the product response.- Specified by:
executeRequestin classBaseInferenceCommand- Parameters:
client- the V2 Mindee clientinputSource- the prepared local input source- Returns:
- the product response
- Throws:
Exception- on IO or API error
-
getSummary
protected String getSummary(CommonResponse response)
Description copied from class:BaseInferenceCommandReturns the summary (result-only) string for the given response. Override in each product command.- Specified by:
getSummaryin classBaseInferenceCommand- Parameters:
response- the product response- Returns:
- the summary string
-
getFullOutput
protected String getFullOutput(CommonResponse response)
Description copied from class:BaseInferenceCommandReturns the full (inference + options + result) string for the given response. Defaults to the same asBaseInferenceCommand.getSummary(com.mindee.v2.parsing.CommonResponse); override for richer output.- Overrides:
getFullOutputin classBaseInferenceCommand- Parameters:
response- the product response- Returns:
- the full output string
-
-