Package adams.core.management
Class OutputProcessStream
- java.lang.Object
-
- adams.core.management.OutputProcessStream
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractOutputPrinterm_Printerthe output printer in use.protected booleanm_Stoppedwhether the output was stopped.
-
Constructor Summary
Constructors Constructor Description OutputProcessStream(Process process, Class cls, boolean stdout)Initializes the object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractOutputPrintergetPrinter()Returns the printer instance in use.voidrun()Prints the output from the process.voidstop()Stops the output.
-
-
-
Field Detail
-
m_Stopped
protected boolean m_Stopped
whether the output was stopped.
-
m_Printer
protected AbstractOutputPrinter m_Printer
the output printer in use.
-
-
Method Detail
-
getPrinter
public AbstractOutputPrinter getPrinter()
Returns the printer instance in use.- Returns:
- the output printer
-
stop
public void stop()
Stops the output.
-
-