Package software.amazon.smithy.cli
Interface CliPrinter
- All Superinterfaces:
- Flushable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles text output of the CLI.
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidflush()Flushes any buffers in the printer.static CliPrinterfromOutputStream(OutputStream stream) Create a new CliPrinter from an OutputStream.static CliPrinterfromPrintWriter(PrintWriter printWriter) Create a new CliPrinter from a PrintWriter.voidPrints text to the writer and appends a new line.
- 
Method Details- 
printlnPrints text to the writer and appends a new line.- Parameters:
- text- Text to print.
 
- 
flushdefault void flush()Flushes any buffers in the printer.
- 
fromPrintWriterCreate a new CliPrinter from a PrintWriter.- Parameters:
- printWriter- PrintWriter to write to.
- Returns:
- Returns the created CliPrinter.
 
- 
fromOutputStreamCreate a new CliPrinter from an OutputStream.- Parameters:
- stream- OutputStream to write to.
- Returns:
- Returns the created CliPrinter.
 
 
-