public interface TransformPolicy
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.Modifier and Type | Method and Description |
---|---|
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
|
void initialize(LazyTransformedInputStream lazyTransformedInputStream)
lazyTransformedInputStream
- void release()
void readRequest(long nroOfBytes)
nroOfBytes
- the nro of bytes requested by the objectCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.