package cdac.medinfo.sdk.hl7282.hl7net.commons;

import java.io.IOException;

import cdac.medinfo.sdk.hl7282.commoninterface.ISegmentSet;


/**
 * The IBufferSender interface should be implemented by any class 
 * whose instances are intended to send Data to remote end. 
 * The class must define the sendMessage, sendBatch and  sendBatchFile methods for Message Stream,Batch and BatchFile respectively.
 * These methods encode given Message,Batch or BatchFiles to  corresponding Stream.
 */
public interface IBufferSender 
{
	/**
	 * Gets automatically invoked when ISegmentSet is to be sent to remote system.
	 * @param objSegmentSet - object of SegmentSet 
	 * @throws IOException 
	 */
	public void sendData(ISegmentSet objSegmentSet) throws IOException;
	
}
