|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.alfresco.util.exec.RuntimeExec.InputStreamReaderThread
public static class RuntimeExec.InputStreamReaderThread
Gobbles an InputStream
and writes it into a
StringBuffer
The reading of the input stream is buffered.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
RuntimeExec.InputStreamReaderThread(java.io.InputStream is,
java.nio.charset.Charset charset)
|
Method Summary | |
---|---|
void |
addToBuffer(java.lang.String msg)
|
java.lang.String |
getBuffer()
|
boolean |
isComplete()
|
void |
run()
|
void |
waitForCompletion()
Waits for the run to complete. |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, clone, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RuntimeExec.InputStreamReaderThread(java.io.InputStream is, java.nio.charset.Charset charset)
is
- an input stream to read - it will be wrapped in a buffer
for readingMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void waitForCompletion()
Remember to start
the thread first
public void addToBuffer(java.lang.String msg)
msg
- the message to add to the bufferpublic boolean isComplete()
public java.lang.String getBuffer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |