blob: 7196ed8b9d0f8088c09e82886cbfa40e8b1b1283 [file] [log] [blame]
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();
}
}