Interface EvaluatedDocument


public interface EvaluatedDocument
An evaluated document ready to be converted to the final output format.
  • Method Summary

    Modifier and Type
    Method
    Description
    default InputStream
    toInputStream(ExecutorService executorService)
    Creates a blocking input stream that can be used to render generated document.
    void
     
    default void
    writeToFile(File output)
    Writes output of this document to a file
  • Method Details

    • write

      void write(OutputStream target)
    • writeToFile

      default void writeToFile(File output) throws IOException
      Writes output of this document to a file
      Throws:
      IOException
    • toInputStream

      default InputStream toInputStream(ExecutorService executorService)
      Creates a blocking input stream that can be used to render generated document.
      Parameters:
      executorService - used to stream output.
      Returns:
      a new input stream that contains the generated document
      Throws:
      NullPointerException - if executorService is null
      IllegalStateException - if executorService would use the current thread