public class EncryptStreamTransformer extends Object implements StreamTransformer
Constructor and Description |
---|
EncryptStreamTransformer(InputStream toBeEncrypted,
org.bouncycastle.openpgp.PGPPublicKey publicKey,
Provider provider) |
Modifier and Type | Method and Description |
---|---|
void |
initialize(OutputStream out)
Initialize this writer to write in the out OutputStream
|
boolean |
write(OutputStream out,
AtomicLong bytesRequested)
Writes into out the number of bytes requested
|
public EncryptStreamTransformer(InputStream toBeEncrypted, org.bouncycastle.openpgp.PGPPublicKey publicKey, Provider provider) throws IOException
IOException
public void initialize(OutputStream out) throws Exception
initialize
in interface StreamTransformer
out
- the OutputStream where this writer is going to write informationException
public boolean write(OutputStream out, AtomicLong bytesRequested) throws Exception
write
in interface StreamTransformer
out
- the OutputStream where this writer is going to write informationbytesRequested
- how many bytes this writer needs to writeException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.