Class StdoutOutputWriter
- java.lang.Object
-
- org.molgenis.vibe.cli.io.output.target.StdoutOutputWriter
-
- All Implemented Interfaces:
OutputWriter
public class StdoutOutputWriter extends Object implements OutputWriter
Writer for writing output to stdout.
-
-
Constructor Summary
Constructors Constructor Description StdoutOutputWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringtarget()Returns aStringdescribing the target to which the output is written (primarily for logging purposes).voidwrite(String output)Writes single piece of information to output target.voidwriteHeader(String output)Writes the header (if available) to the output target.voidwriteNewLine()Generates a newline (if possible) in the output target.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.molgenis.vibe.cli.io.output.target.OutputWriter
close, initialize
-
-
-
-
Method Detail
-
target
public String target()
Description copied from interface:OutputWriterReturns aStringdescribing the target to which the output is written (primarily for logging purposes).- Specified by:
targetin interfaceOutputWriter- Returns:
- a
Stringdescribing the target to which the output is written to.
-
write
public void write(String output)
Description copied from interface:OutputWriterWrites single piece of information to output target.- Specified by:
writein interfaceOutputWriter- Parameters:
output- the output to be written to the output target
-
writeHeader
public void writeHeader(String output)
Description copied from interface:OutputWriterWrites the header (if available) to the output target.- Specified by:
writeHeaderin interfaceOutputWriter
-
writeNewLine
public void writeNewLine()
Description copied from interface:OutputWriterGenerates a newline (if possible) in the output target.- Specified by:
writeNewLinein interfaceOutputWriter
-
-