org.mule.module.pgp
Interface StreamTransformer

All Known Implementing Classes:
DecryptStreamTransformer, EncryptStreamTransformer

public interface StreamTransformer

A writer of OutputStream


Method Summary
 void initialize(OutputStream out)
          Initialize this writer to write in the out OutputStream
 boolean write(OutputStream out, edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicLong bytesRequested)
          Writes into out the number of bytes requested
 

Method Detail

initialize

void initialize(OutputStream out)
                throws Exception
Initialize this writer to write in the out OutputStream

Parameters:
out - the OutputStream where this writer is going to write information
Throws:
Exception

write

boolean write(OutputStream out,
              edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicLong bytesRequested)
              throws Exception
Writes into out the number of bytes requested

Parameters:
out - the OutputStream where this writer is going to write information
bytesRequested - 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.