ArmorImpl: Write to provided output stream instead of system.out
This commit is contained in:
parent
18a6090f0e
commit
c5b576d8d2
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue