i_replacecontent.java

来自「java开源的企业总线.xmlBlaster」· Java 代码 · 共 27 行

JAVA
27
字号
/*------------------------------------------------------------------------------Name:      I_ReplaceContent.javaProject:   xmlBlaster.orgCopyright: xmlBlaster.org, see xmlBlaster-LICENSE file------------------------------------------------------------------------------*/package org.xmlBlaster.util;import java.util.Map;/** * Callback interface to replace a byte[], useful for example when publishing in  * stream mode where you need to modify each chunk.  */public interface I_ReplaceContent {   /**    * Replaces or modifies the oldcontent. The returned instance can be the same as     * passed as the oldContent or it can be a new instance.    * @param oldContent    * @param clientProperties the map can either be used as attributes or it can be modified in    * this method.    *      * @return value    */   byte[] replace(byte[] oldContent, Map clientProperties);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?