Interface IInputStreamConsumer


  • public interface IInputStreamConsumer
    Consumes an input stream after a terminated conversion.
    • Method Detail

      • onComplete

        void onComplete​(InputStream inputStream)
        Invoked if the conversion was completed successfully. If this callback throws an exception, the conversion will be marked as unsuccessful and the exception is rethrown on any invocation of the resulting future's Future.get() method.
        Parameters:
        inputStream - The input stream representing the converted file.
      • onCancel

        void onCancel()
        Invoked if the conversion was cancelled. If this callback throws an exception, the exception will be suppressed.
      • onException

        void onException​(Exception e)
        Invoked if the conversion finished with an exception. If this callback throws an exception, the exception will be suppressed.
        Parameters:
        e - An exception representing the reason for the failed conversion.