posted 23 years ago
Hm - you might try wrapping the InputStream in a BufferedInputStream. That should allow you to read at a more leisurely pace, if the buffer is large enough. It might also be a good idea to check the error stream on the process - there may be important info there which you're missing. The problem is, while you're reading one stream, the application may hang if there's a backlog on the other stream. Very annoying. I suggest creating a separate thread to read the error stream, and print any info there to either the screen, or a log file somewhere. (Or both.)
Incidentally, note that DataInputStream's readLine() method has been deprecated, and BufferedInputStream is the recommended replacement.
"I'm not back." - Bill Harding, Twister