Package com.mindee.cli
Interface ProductProcessor
-
- All Known Implementing Classes:
CommandLineInterface
public interface ProductProcessor
Interface to process CLI products.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Inference<?,?>>
StringstandardProductAsyncOutput(Class<T> productClass, File file)
<T extends Inference<?,?>>
StringstandardProductOutput(Class<T> productClass, File file)
-
-
-
Method Detail
-
standardProductOutput
<T extends Inference<?,?>> String standardProductOutput(Class<T> productClass, File file) throws IOException
- Type Parameters:
T
- Type of the product.- Parameters:
productClass
- Product class to be processed for synchronous products.file
- Input file.- Returns:
- A string representation of the result of the parsing.
- Throws:
IOException
- Throws if the parsing goes wrong.
-
standardProductAsyncOutput
<T extends Inference<?,?>> String standardProductAsyncOutput(Class<T> productClass, File file) throws IOException, InterruptedException
- Type Parameters:
T
- Type of the product.- Parameters:
productClass
- Product class to be processed for asynchronous products.file
- Input file.- Returns:
- A string representation of the result of the parsing.
- Throws:
IOException
- Throws if the parsing goes wrong.InterruptedException
- Throws if the polling is interrupted.
-
-