Interface EvaluatedDocument


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

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default java.io.InputStream toInputStream​(java.util.concurrent.ExecutorService executorService)
      Creates a blocking input stream that can be used to render generated document.
      void write​(java.io.OutputStream target)  
      default void writeToFile​(java.io.File output)
      Writes output of this document to a file
    • Method Detail

      • write

        void write​(java.io.OutputStream target)
      • writeToFile

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

        default java.io.InputStream toInputStream​(java.util.concurrent.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:
        java.lang.NullPointerException - if executorService is null
        java.lang.IllegalStateException - if executorService would use the current thread