org.mule.module.pgp
Class EncryptStreamTransformer
java.lang.Object
org.mule.module.pgp.EncryptStreamTransformer
- All Implemented Interfaces:
- StreamTransformer
public class EncryptStreamTransformer
- extends Object
- implements StreamTransformer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EncryptStreamTransformer
public EncryptStreamTransformer(InputStream toBeEncrypted,
org.bouncycastle.openpgp.PGPPublicKey publicKey)
throws IOException
- Throws:
IOException
initialize
public void initialize(OutputStream out)
throws Exception
- Initialize this writer to write in the out OutputStream
- Specified by:
initialize
in interface StreamTransformer
- Parameters:
out
- the OutputStream where this writer is going to write information
- Throws:
Exception
write
public boolean write(OutputStream out,
AtomicLong bytesRequested)
throws Exception
- Writes into out the number of bytes requested
- Specified by:
write
in interface StreamTransformer
- Parameters:
out
- the OutputStream where this writer is going to write informationbytesRequested
- how many bytes this writer needs to write
- Returns:
- whether this writer has finished writing (no more bytes need to be written)
- Throws:
Exception
Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.