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
1 changed files with 1 additions and 1 deletions

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();
}