1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-22 19:08:00 +01:00

ArmorImpl: Write to provided output stream instead of system.out

This commit is contained in:
Paul Schaub 2021-10-04 16:02:28 +02:00
parent 18a6090f0e
commit c5b576d8d2
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -39,7 +39,7 @@ public class ArmorImpl implements Armor {
return new Ready() {
@Override
public void writeTo(OutputStream outputStream) throws IOException {
ArmoredOutputStream armor = ArmoredOutputStreamFactory.get(System.out);
ArmoredOutputStream armor = ArmoredOutputStreamFactory.get(outputStream);
Streams.pipeAll(data, armor);
armor.close();
}