xmlBlaster 2.2.0 client API

org.xmlBlaster.util
Interface I_ReplaceContent


public interface I_ReplaceContent

Callback interface to replace a byte[], useful for example when publishing in stream mode where you need to modify each chunk.


Method Summary
 byte[] replace(byte[] oldContent, java.util.Map clientProperties)
          Replaces or modifies the oldcontent.
 

Method Detail

replace

byte[] replace(byte[] oldContent,
               java.util.Map clientProperties)
Replaces or modifies the oldcontent. The returned instance can be the same as passed as the oldContent or it can be a new instance.

Parameters:
oldContent -
clientProperties - the map can either be used as attributes or it can be modified in this method.
Returns:
value

xmlBlaster 2.2.0 client API

Copyright © 1999-2014 The xmlBlaster.org contributers.