Trait to define the behavior of an AutoCloseable that is a pseudo-monadic IO type for output.
In general, when two Outputs are concatenated (using ++), we merge the content of the Output on the right into the Output on the left. That way, it makes sense that the Output on the left is backed by a write-store (such as a Writer). The concatenation logic tries its best to keep things in order and appropriately backed.
NOTE: indentation also tends to be applied to the Output on the left. However, if new (unbacked) Outputs are created to be used for outputting indented values, then such Outputs should be explicitly indented also. A warning could be created if two Outputs are merged with different indents (but is currently commented out).
Method to create a copy of this Output. Content (whether flushed or not) will never be copied, but the other parameters of this Output may or may not be copied, depending on the actual implementation.
Method to create a copy of this Output. Content (whether flushed or not) will never be copied, but the other parameters of this Output may or may not be copied, depending on the actual implementation.
Attributes
Returns
a new Output which is, essentially, similar to this but without any content.
This method inserts a break into the output. If the output is based on character sequences, then this method will cause a newline character to be inserted.
This method inserts a break into the output. If the output is based on character sequences, then this method will cause a newline character to be inserted.