Package com.mindee

Class CommandLineInterface

    • Constructor Detail

      • CommandLineInterface

        public CommandLineInterface()
    • Method Detail

      • main

        public static void main​(String[] args)
        Instantiates all products one by one in a separate picocli instance and relays the command to them.
        Parameters:
        args - CLI args.
      • getDefaultPageOptions

        protected PageOptions getDefaultPageOptions()
      • standardProductOutput

        public <T extends Inference<?,​?>> String standardProductOutput​(Class<T> productClass,
                                                                             File file)
                                                                      throws IOException
        Specified by:
        standardProductOutput in interface ProductProcessor
        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.