What do you use when you want to run a command-line app from Java and feed its stdin from an InputStream, collecting stdout in an OutputStream? I'm using threads for this and it feels *extremely* ...
import java.io.IOException; public class ProcessDemo { public static void main(String[] args) throws IOException { Process p = new ProcessBuilder("notepad.exe").start ...