The output as a simple function taking Strings to append to the output.
The output as a java.io.Writer
.
The full path of this output.
The full path of this output. This path is always an absolute path from the root of the (virtual) output tree, therefore does not represent the filesystem path in case of file I/O.
Flushes this output, forcing all buffered output to be written, without closing the underlying writer or stream.
The local name of this output.
Represents the output of a renderer, abstracting over various types of IO resources.
For renderers that only need a simple way to pass Strings to the output, a simple funtion (
String => Unit
) is provided. Alternatively the fulljava.io.Writer
API may be used.The API provided by this trait is only meant to be used internally by a renderer implementation. For providing hooks for user customization, the renderer should wrap it in a convenient API appropriate for the corresponding output format, like the
HTMLWriter
API for HTML renderers for example.