| package org.eclipse.epp.installer.launcher; |
| |
| import java.io.IOException; |
| import java.io.OutputStream; |
| import java.io.PrintStream; |
| |
| public class TwinOutputStream extends OutputStream { |
| |
| private PrintStream out1, out2; |
| |
| public TwinOutputStream(PrintStream out1, PrintStream out2) { |
| this.out1 = out1; |
| this.out2 = out2; |
| } |
| |
| public void write(int b) throws IOException { |
| out1.write(b); |
| out2.write(b); |
| } |
| |
| public void close() throws IOException { |
| out1.close(); |
| out2.close(); |
| } |
| |
| public void flush() throws IOException { |
| out1.flush(); |
| out2.flush(); |
| } |
| } |