Package io.github.erdos.stencil
Interface EvaluatedDocument
public interface EvaluatedDocument
An evaluated document ready to be converted to the final output format.
- 
Method SummaryModifier 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
- 
writeToFileWrites output of this document to a file- Throws:
- IOException
 
- 
toInputStreamCreates 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
 
 
-