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

/**
 * The IMLLP interface should be implemented by any class 
 * whose instances are intended to process HL7 Message with Minimum Lower Layer Protocol.
 */
public interface IMLLP
{
	/**
	 * Writes MLLP's Component on to the byte array, which containing HL7 message.
	 * @param barray Containing HL7 message.
	 * @return byte[] - Return byte array containing HL7 message with MLLP's Component.
	 */
	public byte[] writeMLLPComponent(byte[] barray);	
	
	/**
	 * Reads MLLP's Component from the byte array, which containing HL7 message.
	 * @param barray Containing HL7 message.
	 * @return byte[] - Return byte array containing HL7 message without MLLP's Component
	 */
	public byte[] readMLLPComponent(byte[] barray);	
}
