org.mule.module.pgp
Interface TransformPolicy

All Known Implementing Classes:
AbstractTransformPolicy, TransformContinuouslyPolicy, TransformPerRequestInChunksPolicy, TransformPerRequestPolicy

public interface TransformPolicy

A TransformPolicy represents a policy that controls how StreamTransformer transform LazyTransformedInputStream. For instance, a policy would be transform all the bytes of the stream without waiting for some object to be requested.


Method Summary
 void initialize(LazyTransformedInputStream lazyTransformedInputStream)
          Initialize this policy with the corresponding lazyTransformedInputStream
 void readRequest(long nroOfBytes)
          Notifies this policy that the object has requested nroOfBytes
 void release()
          Releases all the resources of this policy
 

Method Detail

initialize

void initialize(LazyTransformedInputStream lazyTransformedInputStream)
Initialize this policy with the corresponding lazyTransformedInputStream

Parameters:
lazyTransformedInputStream -

release

void release()
Releases all the resources of this policy


readRequest

void readRequest(long nroOfBytes)
Notifies this policy that the object has requested nroOfBytes

Parameters:
nroOfBytes - the nro of bytes requested by the object


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.