Interface ProductProcessor

  • All Known Implementing Classes:
    CommandLineInterface

    public interface ProductProcessor
    Interface to process CLI products.
    • 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.