// Adds a new Thread that links a reader to a writer. Used to private IOHandlerThread redirectIOStream(Reader reader, TextOutputStream writer) { IOHandlerThread thr = new IOHandlerThread(reader, writer); thr.start(); return thr; }