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 CliPrinter
append
(CharSequence csq) append
(CharSequence csq, int start, int end) default void
flush()
Flushes any buffers in the printer.static CliPrinter
fromOutputStream
(OutputStream stream) Create a new CliPrinter from an OutputStream.default CliPrinter
Prints text to the writer and appends a new line.
-
Method Details
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in 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.
-