Constructor and Description |
---|
ConsoleAdapter() |
Modifier and Type | Method and Description |
---|---|
PrintStream |
getErr()
Returns
PrintStream that prints messages with error priority. |
PrintStream |
getInfo()
Returns
PrintStream that prints messages with info priority. |
PrintStream |
getNotif()
Returns
PrintStream that prints messages with notification priority. |
PrintStream |
getOut()
Returns
PrintStream that prints messages with normal priority |
PrintStream |
getWarn()
Returns
PrintStream that prints messages with warning priority. |
void |
setMaxMessages(int maxNumber)
Sets the maximum number of messages.
|
public PrintStream getOut()
IConsole
PrintStream
that prints messages with normal prioritygetOut
in interface IConsole
PrintStream
to print messagespublic PrintStream getErr()
IConsole
PrintStream
that prints messages with error priority. Messages are shown in red colorgetErr
in interface IConsole
PrintStream
to print messagespublic PrintStream getWarn()
IConsole
PrintStream
that prints messages with warning priority. Messages by default are shown in yellow colorgetWarn
in interface IConsole
PrintStream
to print messagespublic PrintStream getInfo()
IConsole
PrintStream
that prints messages with info priority. Messages by default are shown in green colorgetInfo
in interface IConsole
PrintStream
to print messagespublic PrintStream getNotif()
IConsole
PrintStream
that prints messages with notification priority. Messages by default are shown in blue colorgetNotif
in interface IConsole
PrintStream
to print messagespublic void setMaxMessages(int maxNumber)
IConsole
setMaxMessages
in interface IConsole
maxNumber
- maximum number of messages in Messages table. Passing -1 makes it unrestricted.Copyright © 2016. All rights reserved.