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

import java.io.IOException;

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



/**
 * The IDataProcessor interface should be implemented by any class 
 * whose instances are intended to receive Data from remote end. 
 * The class must define the overloaded onDataReceived methods for Message Stream,Batch and BatchFile.  
 */
public interface IDataProcessor 
{
	/**
	 * Adds DataProcessors to Receive SegmentSet.
	 * @param objSegmentSet SegmentSet that is received as Data.
	 * @throws IOException Thrown when IO operation fails.
	 */
	public void onDataReceived(ISegmentSet objSegmentSet ) throws IOException;

}
