I have several output listeners that are implementing OutputStream. It can be either a PrintStream writing to stdout or to a File, or it can be writing to memory or any othe
Wrap your OutputStream with a PrintWriter and use the print methods on that class. They take in a String and do the work for you.