Package adams.core.management
Class DefaultOutputPrinter
- java.lang.Object
-
- adams.core.management.AbstractOutputPrinter
-
- adams.core.management.DefaultOutputPrinter
-
- Direct Known Subclasses:
LoggingObjectOutputPrinter
public class DefaultOutputPrinter extends AbstractOutputPrinter
Default printer for processes.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
OutputProcessStream
-
-
Field Summary
-
Fields inherited from class adams.core.management.AbstractOutputPrinter
m_ID, m_Reader, m_StdOut
-
-
Constructor Summary
Constructors Constructor Description DefaultOutputPrinter(boolean stdout, Process process)
Initializes the printer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
output(String line)
Outputs the specified line.-
Methods inherited from class adams.core.management.AbstractOutputPrinter
getID, initialize, isStdOut, process, read, toString
-
-
-
-
Constructor Detail
-
DefaultOutputPrinter
public DefaultOutputPrinter(boolean stdout, Process process)
Initializes the printer.- Parameters:
stdout
- whether to use stdout or stderrprocess
- the process to monitor
-
-
Method Detail
-
output
protected void output(String line)
Outputs the specified line.- Specified by:
output
in classAbstractOutputPrinter
- Parameters:
line
- the text to output
-
-