public interface Printer extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
Printer.ClearCommandPrinter
Printer to clear the terminal.
|
static class |
Printer.HelpCommandPrinter
Printer to print the HELP results.
|
static class |
Printer.InitializationCommandPrinter
Printer prints the initialization command results.
|
static class |
Printer.QuitCommandPrinter
Printer to print the QUIT messages.
|
static class |
Printer.StatementResultPrinter
Printer prints the statement results.
|
Modifier and Type | Method and Description |
---|---|
default void |
close()
Close the resource of the
Printer . |
static Printer.ClearCommandPrinter |
createClearCommandPrinter() |
static Printer.HelpCommandPrinter |
createHelpCommandPrinter() |
static Printer.InitializationCommandPrinter |
createInitializationCommandPrinter() |
static Printer.QuitCommandPrinter |
createQuitCommandPrinter() |
static Printer.StatementResultPrinter |
createStatementCommandPrinter(StatementResult result,
ReadableConfig sessionConfig,
long startTime) |
boolean |
isQuitCommand()
Flag to determine whether to quit the process.
|
void |
print(org.jline.terminal.Terminal terminal)
Print the results to the terminal.
|
static void |
printInfo(org.jline.terminal.Terminal terminal,
String message) |
boolean isQuitCommand()
void print(org.jline.terminal.Terminal terminal)
default void close()
Printer
.close
in interface AutoCloseable
close
in interface Closeable
static Printer.ClearCommandPrinter createClearCommandPrinter()
static Printer.QuitCommandPrinter createQuitCommandPrinter()
static Printer.HelpCommandPrinter createHelpCommandPrinter()
static Printer.StatementResultPrinter createStatementCommandPrinter(StatementResult result, ReadableConfig sessionConfig, long startTime)
static Printer.InitializationCommandPrinter createInitializationCommandPrinter()
static void printInfo(org.jline.terminal.Terminal terminal, String message)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.