Package software.amazon.smithy.cli
Interface CliPrinter
- All Superinterfaces:
 Appendable,Flushable
Handles text output of the CLI.
- 
Method Summary
Modifier and TypeMethodDescriptionappend(char c) default CliPrinterappend(CharSequence csq) append(CharSequence csq, int start, int end) default voidflush()Flushes any buffers in the printer.static CliPrinterfromOutputStream(OutputStream stream) Create a new CliPrinter from an OutputStream.default CliPrinterPrints text to the writer and appends a new line. 
- 
Method Details
- 
append
- Specified by:
 appendin interfaceAppendable
 - 
append
- Specified by:
 appendin interfaceAppendable
 - 
append
- Specified by:
 appendin interfaceAppendable
 - 
println
Prints text to the writer and appends a new line.- Parameters:
 text- Text to print.
 - 
flush
default void flush()Flushes any buffers in the printer. - 
fromOutputStream
Create a new CliPrinter from an OutputStream.- Parameters:
 stream- OutputStream to write to.- Returns:
 - Returns the created CliPrinter.
 
 
 -