mirror of
https://codeberg.org/PGPainless/sop-java.git
synced 2025-09-09 10:19:47 +02:00
Add more armor/dearmor tests
This commit is contained in:
parent
670aa0f242
commit
4726362df8
3 changed files with 189 additions and 8 deletions
|
@ -274,6 +274,7 @@ public class ExternalSOP implements SOP {
|
|||
outputStream.write(buf, 0, r);
|
||||
}
|
||||
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
ExternalSOP.finish(process);
|
||||
}
|
||||
|
@ -299,19 +300,17 @@ public class ExternalSOP implements SOP {
|
|||
while ((r = standardIn.read(buf)) > 0) {
|
||||
processOut.write(buf, 0, r);
|
||||
}
|
||||
|
||||
standardIn.close();
|
||||
try {
|
||||
processOut.close();
|
||||
} catch (IOException e) {
|
||||
// ignore
|
||||
}
|
||||
|
||||
processOut.flush();
|
||||
processOut.close();
|
||||
|
||||
while ((r = processIn.read(buf)) > 0) {
|
||||
outputStream.write(buf, 0 , r);
|
||||
}
|
||||
|
||||
processIn.close();
|
||||
|
||||
outputStream.flush();
|
||||
outputStream.close();
|
||||
|
||||
finish(process);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue