public class FileCommandOutput extends CommandOutput
| Constructor and Description |
|---|
FileCommandOutput(File file,
boolean appendToOutput) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the output;
|
void |
print(String value)
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.
|
printlnpublic FileCommandOutput(File file, boolean appendToOutput) throws IOException
file - where the result is written to.appendToOutput - whether to write to output.IOException - allows IO error.public void close()
CommandOutputclose in class CommandOutputpublic void print(String value)
CommandOutputprint in class CommandOutputvalue - 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.