Package io.github.erdos.stencil
Interface EvaluatedDocument
public interface EvaluatedDocument
An evaluated document ready to be converted to the final output format.
-
Method Summary
Modifier and TypeMethodDescriptiondefault InputStreamtoInputStream(ExecutorService executorService) Creates a blocking input stream that can be used to render generated document.voidwrite(OutputStream target) default voidwriteToFile(File output) Writes output of this document to a file
-
Method Details
-
write
-
writeToFile
Writes output of this document to a file- Throws:
IOException
-
toInputStream
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 nullIllegalStateException- if executorService would use the current thread
-