cdac.medinfo.sdk.hl7282.hl7net.communication

## Class MLLP

- java.lang.Object
- - cdac.medinfo.sdk.hl7282.hl7net.communication.MLLP

- All Implemented Interfaces:
    IMLLP

      public class MLLP
      extends java.lang.Object
      implements IMLLP

  Minimum Lower Layer Protocol (MLLP) class deals with auxiliary protocols. This class works as a Utility class, if user want to send HL7 Messages, user have two options either by MLLP or by TCP/IP.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MLLP()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `readMLLPComponent(byte[] barray)` Reads MLLP's Component from the byte array, which containing HL7 message.
    `byte[]` | `writeMLLPComponent(byte[] barray)` Writes MLLP's Component on to the byte array, which containing HL7 message.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MLLP

          public MLLP()

  - ### Method Detail

    - #### writeMLLPComponent

          public byte[] writeMLLPComponent(byte[] barray)

      Writes MLLP's Component on to the byte array, which containing HL7 message.
      Specified by:
        `writeMLLPComponent` in interface `IMLLP`
      Parameters:
        `barray` - Containing HL7 message.
      Returns:
        byte[] - Return byte array containing HL7 message with MLLP's Component.

    - #### readMLLPComponent

          public byte[] readMLLPComponent(byte[] barray)

      Reads MLLP's Component from the byte array, which containing HL7 message.
      Specified by:
        `readMLLPComponent` in interface `IMLLP`
      Parameters:
        `barray` - Containing HL7 message.
      Returns:
        byte[] - Return byte array containing HL7 message without MLLP's Component