corda / com.r3.corda.networkmanage.common / Renderer

Renderer

interface Renderer

Interface for the class responsible for handling messages, errors and user input. Depending on the implementation, can either pipe messages to a log file or some other output (e.g. shell console).

Functions

printError

abstract fun printError(exception: Exception): Unit
abstract fun printError(msg: String): Unit

printLine

abstract fun printLine(msg: String): Unit

printTable

abstract fun printTable(columnHeaders: List<String>, rowValues: List<List<String>>, precedingNewLine: Boolean): Unit

printWarning

abstract fun printWarning(exception: Exception): Unit
abstract fun printWarning(msg: String): Unit

readInput

abstract fun readInput(promptString: String = "> "): String?

readPassword

abstract fun readPassword(promptString: String = "> "): String?

Inheritors

LoggingRenderer

class LoggingRenderer : Renderer

Pipes messages to the provided logging context ctx and reads input from the standard console.