org.shept.util
Class CommandShellExecute.StreamGobbler

java.lang.Object
  extended by java.lang.Thread
      extended by org.shept.util.CommandShellExecute.StreamGobbler
All Implemented Interfaces:
Runnable
Enclosing class:
CommandShellExecute

 class CommandShellExecute.StreamGobbler
extends Thread

This gobbler swallows any streamed output from the operation and writes it into the log

Author:
Andreas Hahn

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  Boolean err
           
(package private)  InputStream is
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CommandShellExecute.StreamGobbler(InputStream is, Boolean error)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

is

InputStream is

err

Boolean err
Constructor Detail

CommandShellExecute.StreamGobbler

CommandShellExecute.StreamGobbler(InputStream is,
                                  Boolean error)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


Copyright © 2011. All Rights Reserved.