How to make use of StreamGobbler?

Hi,

I want to redirect the out and err statements to a file.

I found a class called StreamGobbler at http://www.physionet.org/physiotools/puka/sourceCode/puka/StreamGobbler.java

I dont know how to make use of it as I have almost no knowledge of Concurrency and threads in Java.

Plz guide.

[319 byte] By [kaprasannaa] at [2007-11-27 3:31:47]
# 1
> I found a class called StreamGobbler at> http://www.physionet.org/physiotools/puka/sourceCode/p> uka/StreamGobbler.javaDo you see, at the very top of that page, the URL for the original article? It explains everything step by step in great detail.
Lokoa at 2007-7-12 8:34:47 > top of Java-index,Core,Core APIs...