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

/**
 * IReadBufferListener is implemented by the classes that wish to have 
 * capability of breaking Stream into packets.
 */
public interface IReadBufferListener 
{
	/**
	 * Reads Stream with packet of byte array.
	 * @param buffer byte array
	 * @return boolean - indicates buffer is received successfully or not
	 */
	boolean readMessageBuffer(byte[] buffer);
}
