All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spreadsheet.mapper.m2f.write.MessageWriteHelper Maven / Gradle / Ivy

The newest version!
package spreadsheet.mapper.m2f.write;

import spreadsheet.mapper.m2f.write.strategy.MessageWriteStrategy;
import spreadsheet.mapper.model.msg.Message;
import spreadsheet.mapper.model.msg.MessageWriteStrategies;

import java.io.OutputStream;
import java.util.Collection;

/**
 * message write helper
 * 

* Created by hanwen on 2017/1/3. */ public interface MessageWriteHelper { /** * {@link MessageWriteStrategy} unique with {@link MessageWriteStrategies} (one to one) * * @param messageWriteStrategy {@link MessageWriteStrategy} * @return {@link MessageWriteHelper} */ MessageWriteHelper addMessageWriteStrategy(MessageWriteStrategy messageWriteStrategy); /** * write messages to supplied output stream * * @param messages {@link Message} * @param outputStream notice close the stream */ void write(Collection messages, OutputStream outputStream); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy