1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 20:32:05 +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() { return new Ready() {
@Override @Override
public void writeTo(OutputStream outputStream) throws IOException { public void writeTo(OutputStream outputStream) throws IOException {
ArmoredOutputStream armor = ArmoredOutputStreamFactory.get(System.out); ArmoredOutputStream armor = ArmoredOutputStreamFactory.get(outputStream);
Streams.pipeAll(data, armor); Streams.pipeAll(data, armor);
armor.close(); armor.close();
} }