Package ca.uqac.lif.cep.provenance
Class CommandRunner.StreamGobbler
- java.lang.Object
-
- java.lang.Thread
-
- ca.uqac.lif.cep.provenance.CommandRunner.StreamGobbler
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- CommandRunner
protected class CommandRunner.StreamGobbler extends java.lang.Thread
Constantly reads an input stream and captures its content. Inspired from Stack Overflow
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
Returns the contents captured by the gobbler as an array of bytesvoid
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-