mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-11 19:29:39 +02:00
Workaround for #159: Avoid to prevent swallowing IOExceptions
This commit is contained in:
parent
10bb033e40
commit
fc311fe781
25 changed files with 216 additions and 72 deletions
|
@ -127,7 +127,7 @@ Still it allows you to manually specify which algorithms to use of course.
|
|||
).setAsciiArmor(true) // Ascii armor or not
|
||||
);
|
||||
|
||||
Streams.pipeAll(plaintextInputStream, encryptionStream);
|
||||
StreamUtil.pipeAll(plaintextInputStream, encryptionStream);
|
||||
encryptionStream.close();
|
||||
```
|
||||
|
||||
|
@ -147,7 +147,7 @@ This behaviour can be modified though using the `Policy` class.
|
|||
.addVerificationCert(alicePubKeys)
|
||||
);
|
||||
|
||||
Streams.pipeAll(decryptionStream, outputStream);
|
||||
StreamUtil.pipeAll(decryptionStream, outputStream);
|
||||
decryptionStream.close();
|
||||
|
||||
// Result contains information like signature status etc.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue