|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglassfrog.players.StreamConnect
public class StreamConnect
If a program called by Process sends data to stdout which is not read, it blocks. This class allows you to connect stdout of a process to an inputstream
Field Summary | |
---|---|
(package private) java.io.InputStream |
is
The stream to be read from. |
(package private) java.io.OutputStream |
os
The stream to be written to. |
Constructor Summary | |
---|---|
StreamConnect(java.io.InputStream is,
java.io.OutputStream os)
Generate a new StreamConnect object. |
Method Summary | |
---|---|
void |
run()
A thread which takes bytes from the input stream to the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.io.InputStream is
java.io.OutputStream os
Constructor Detail |
---|
public StreamConnect(java.io.InputStream is, java.io.OutputStream os)
is
- Input streamos
- Output streamMethod Detail |
---|
public void run()
run
in interface java.lang.Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |