Class ColorFormatter.PrinterBuffer

java.lang.Object
software.amazon.smithy.cli.ColorFormatter.PrinterBuffer
All Implemented Interfaces:
Appendable, AutoCloseable
Enclosing interface:
ColorFormatter

public static final class ColorFormatter.PrinterBuffer extends Object implements Appendable, AutoCloseable
A buffer associated with a CliPrinter used to build up a string of colored text.

Use close() to write to the associated CliPrinter, or wrap the buffer in a try-with-resources block.