mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 16:37:13 +02:00
Clean up Improved(Input|Output)Stream
Two main changes: - Replaced getClass().getSimpleName() in the logs with a constructor-given name. Right now what we have is a lot of identical classes with slightly different names so that the logs would be different. With this change - we can later get rid of a lot of these classes and replace them with simple wrappers. - Removed the "expected" feature. Only Tar uses it - and it can override onClose to do that (that's what it's there for!) ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202129563
This commit is contained in:
parent
07aead3ca4
commit
3550045636
8 changed files with 34 additions and 37 deletions
|
@ -56,7 +56,7 @@ public class RydePgpSigningOutputStream extends ImprovedOutputStream {
|
|||
public RydePgpSigningOutputStream(
|
||||
@WillNotClose OutputStream os,
|
||||
PGPKeyPair signingKey) {
|
||||
super(os, false, -1);
|
||||
super("RydePgpSigningOutputStream", os, false);
|
||||
try {
|
||||
signer = new PGPSignatureGenerator(
|
||||
new BcPGPContentSignerBuilder(RSA_GENERAL, SHA256));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue