|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
fable.python.jep.StdoutRead
public class StdoutRead
Redirect a file to System.out and/or FableMessageConsole. This class is used to listen to python stdout. A current console must be created as output message are redirect in FableMessageConsole. The class has setter methods to select outputting to System.out and/or FableMessageConsole.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
long |
lasttime
|
boolean |
stopped
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
StdoutRead(java.lang.String filename)
|
Method Summary | |
---|---|
void |
run()
|
void |
setOutputToFableConsole(boolean value)
set the flag to output to System.out to true or false |
void |
setOutputToSystemOut(boolean value)
set the flag to output to System.out to true or false |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean stopped
public long lasttime
Constructor Detail |
---|
public StdoutRead(java.lang.String filename)
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void setOutputToSystemOut(boolean value)
value
- - true (output to System.out) or false (do not output to
System.out)public void setOutputToFableConsole(boolean value)
value
- - true (output to FableMessageConsole) or false (do not output
to FableMessageConsole)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |