cdac.medinfo.sdk.hl7282.hl7net.commons

## Interface IBufferReceiver

- All Known Implementing Classes:
    AuxAgent

      public interface IBufferReceiver

  The IBufferReceiver interface should be implemented by any class whose instances are intended to get notified when Data is received from remote end. The class must define the overloaded onMessageBufferReceived methods for Message Stream,Batch and BatchFile.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `LocalExtensionAgent` | `getLocalExtensionAgent()` Retrieves instance of LocalExtensionAgent.
    `boolean` | `onMessageBufferReceived(byte[] arrByte)` Gets automatically invoked when Message is received from remote system.
    `void` | `setLocalExtensionAgent(LocalExtensionAgent objAgent)` Sets LocalExtensionAgent to process locally extended segments

- - ### Method Detail

    - #### onMessageBufferReceived

          boolean onMessageBufferReceived(byte[] arrByte)
                                          throws java.io.IOException

      Gets automatically invoked when Message is received from remote system.
      Parameters:
        `buffer` - message stream received in form of byte array
      Returns:
        boolean - status indicating reception of Message buffer from remote end.
      Throws:
        `java.io.IOException` - Signals that an IO Exception has occurred.

    - #### setLocalExtensionAgent

          void setLocalExtensionAgent(LocalExtensionAgent objAgent)

      Sets LocalExtensionAgent to process locally extended segments
      Parameters:
        `objAgent` - instance of LocalExtensionAgent

    - #### getLocalExtensionAgent

          LocalExtensionAgent getLocalExtensionAgent()

      Retrieves instance of LocalExtensionAgent.
      Returns:
        LocalExtensionAgent - instance of LocalExtensionAgent