1 /*------------------------------------------------------------------------------
 2 Name:      I_Update.java
 3 Project:   org.xmlBlasterProject:   xmlBlaster.org
 4 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
 5 ------------------------------------------------------------------------------*/
 6 package org.xmlBlaster.contrib;
 7 
 8 import java.io.InputStream;
 9 import java.util.Map;
10 
11 /**
12  * Helper to return subscribed messages.  
13  * @author Marcel Ruff
14  */
15 public interface I_Update {
16    /**
17     * The message received from the MoM or from another source.
18     * @param topic The topic name
19     * @param content The message content
20     * @param attrMap A map with attribute, can be null 
21     */
22    // void update(String topic, byte[] content, Map attrMap) throws Exception;
23    void update(String topic, InputStream is, Map attrMap) throws Exception;
24 }


syntax highlighted by Code2HTML, v. 0.9.1