public static class RuntimeExec.InputStreamReaderThread
extends java.lang.Thread
InputStream and writes it into a
StringBuffer
The reading of the input stream is buffered.
| Constructor and Description |
|---|
RuntimeExec.InputStreamReaderThread(java.io.InputStream is,
java.nio.charset.Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToBuffer(java.lang.String msg) |
java.lang.String |
getBuffer() |
boolean |
isComplete() |
void |
run() |
void |
waitForCompletion()
Waits for the run to complete.
|
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, yieldpublic 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 readingpublic void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic 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()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.