|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.gloin.resource.misc.StreamPlugThread
StreamPlugThread
is a utility class that "plugs" two streams,
one input stream and one output stream, together by creating a thread that
repeatedly reads any data available from the input stream and writes it to
the output stream.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
StreamPlugThread(java.io.InputStream in,
java.io.OutputStream out)
|
Method Summary | |
static void |
error(java.lang.String err)
|
static void |
main(java.lang.String[] args)
|
static void |
plugTogether(java.io.InputStream in,
java.io.OutputStream out)
|
static void |
plugTogether(java.io.OutputStream out,
java.io.InputStream in)
|
void |
run()
|
static java.lang.Process |
userProg(java.lang.String cmd)
|
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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 |
Constructor Detail |
public StreamPlugThread(java.io.InputStream in, java.io.OutputStream out)
Method Detail |
public void run()
run
in class java.lang.Thread
public static void plugTogether(java.io.InputStream in, java.io.OutputStream out)
public static void plugTogether(java.io.OutputStream out, java.io.InputStream in)
public static java.lang.Process userProg(java.lang.String cmd) throws java.io.IOException
public static void main(java.lang.String[] args)
public static void error(java.lang.String err)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |