-
- All Superinterfaces:
Flushable
- All Known Implementing Classes:
CliConsoleImpl
public interface CliConsole extends Flushable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CliOutdebug()default CliOuterror()voidflush()CliLogLevelgetLogLevel()PrintStreamgetStdErr()PrintStreamgetStdOut()CliInin()default CliOutinfo()default CliOutout()CliOutout(CliLogLevel level)default CliOutwarning()
-
-
-
Method Detail
-
getLogLevel
CliLogLevel getLogLevel()
- Returns:
- the current
CliLogLevelof this console.
-
out
default CliOut out()
- Returns:
- the
CliOutforstandard out.
-
out
CliOut out(CliLogLevel level)
- Parameters:
level- theCliLogLevel.- Returns:
- the
CliOutfor the givenCliLogLevel.
-
debug
default CliOut debug()
- Returns:
- the
CliOutforCliLogLevel.DEBUG.
-
info
default CliOut info()
- Returns:
- the
CliOutforCliLogLevel.INFO.
-
warning
default CliOut warning()
- Returns:
- the
CliOutforCliLogLevel.WARNING.
-
error
default CliOut error()
- Returns:
- the
CliOutforCliLogLevel.ERROR.
-
getStdOut
PrintStream getStdOut()
- Returns:
- the
PrintStreamto use as standard output. Defaults toSystem.out.
-
getStdErr
PrintStream getStdErr()
- Returns:
- the
PrintStreamto use as standard error. Defaults toSystem.err.
-
-