|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ThreadIO
Enable multiplexing of the standard IO streams for input, output, and error.
This service guards the central resource of IO streams. The standard streams are singletons. This service replaces the singletons with special versions that can find a unique stream for each thread. If no stream is associated with a thread, it will use the standard input/output that was originally set.
Method Summary | |
---|---|
void |
close()
Cancel the streams associated with the current thread. |
void |
setStreams(java.io.InputStream in,
java.io.PrintStream out,
java.io.PrintStream err)
Associate this streams with the current thread. |
Method Detail |
---|
void setStreams(java.io.InputStream in, java.io.PrintStream out, java.io.PrintStream err)
in
- InputStream to use for the current thread when System.in is usedout
- PrintStream to use for the current thread when System.out is usederr
- PrintStream to use for the current thread when System.err is usedvoid close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |