How to write data to two java.io.OutputStream objects at once? July 24, 2023 by Tarik Try the Apache Commons TeeOutputStream.