public class PrintStreamCommandOutput extends CommandOutput
| Constructor and Description |
|---|
PrintStreamCommandOutput()
Default constructor that uses system standard output and err output
|
PrintStreamCommandOutput(PrintStream output)
Constructor with given result output and system error as message output
|
PrintStreamCommandOutput(PrintStream resultOutput,
PrintStream messageOutput) |
| Modifier and Type | Method and Description |
|---|---|
void |
print(String output)
Print out value to output without line break
|
void |
printError(Throwable e) |
void |
printMessage(String message)
Print message to non-standard console for human to read.
|
close, printlnpublic PrintStreamCommandOutput()
public PrintStreamCommandOutput(PrintStream output)
output - Output for resultpublic PrintStreamCommandOutput(PrintStream resultOutput, PrintStream messageOutput)
resultOutput - PrintStream where result is written tomessageOutput - PrintStream where message is written topublic void print(String output)
CommandOutputprint in class CommandOutputoutput - Value to print outpublic void printError(Throwable e)
printError in class CommandOutpute - Error to print outpublic void printMessage(String message)
CommandOutputprintMessage in class CommandOutputmessage - Message to print out.Copyright © 2008–2019. All rights reserved.