Class StreamingProcessReader
java.lang.Object
com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
com.github.fracpete.processoutput4j.reader.AbstractProcessReader
com.github.fracpete.processoutput4j.reader.StreamingProcessReader
- All Implemented Interfaces:
Runnable
Forwards the output from the process to the owning
StreamingProcessOwner
object, if appropriate.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanwhether to forward the output to the owner.protected StreamingProcessOwnerthe owner.Fields inherited from class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
m_Reader, m_StdoutFields inherited from class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
m_Process, m_Queue, m_Stopped -
Constructor Summary
ConstructorsConstructorDescriptionStreamingProcessReader(StreamingProcessOwner owner, boolean stdout) Initializes the reader. -
Method Summary
Methods inherited from class com.github.fracpete.processoutput4j.reader.AbstractProcessReader
doRun, flush, isStdoutMethods inherited from class com.github.fracpete.processoutput4j.core.AbstractProcessRunnable
getProcess, isStopped, logError, logError, run, setProcess, stopExecution
-
Field Details
-
m_Owner
the owner. -
m_Forward
protected boolean m_Forwardwhether to forward the output to the owner.
-
-
Constructor Details
-
StreamingProcessReader
Initializes the reader.- Parameters:
owner- the owning objectstdout- whether to read stdout or stderr
-
-
Method Details
-
process
For processing the line read from stdout/stderr.- Specified by:
processin classAbstractProcessReader- Parameters:
line- the output line
-