cdac.medinfo.sdk.hl7282.hl7net.communication

## Class MessageStreamSplitter

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

-     public class MessageStreamSplitter
      extends java.lang.Object

  MessageStreamSplitter performs splitting operation on InputStream that it receives from Network Layer. Splitting involves making chunks of Stream of Messages such as each chunk contains one message.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MessageStreamSplitter()` Instantiates MessageStreamSplitter

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ISingleCollection<ISegmentSet>` | `splitMessageBuffer(ISegmentSet objSegmentSet)` Reads Byte Array specified and divides them into stream pieces containing single message.

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

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

- - ### Constructor Detail

    - #### MessageStreamSplitter

          public MessageStreamSplitter()

      Instantiates MessageStreamSplitter

  - ### Method Detail

    - #### splitMessageBuffer

          public ISingleCollection<ISegmentSet> splitMessageBuffer(ISegmentSet objSegmentSet)

      Reads Byte Array specified and divides them into stream pieces containing single message. Returns collection of streams and each stream contains single message.
      Parameters:
        `buf` - Byte Array
      Returns:
        ISingleCollection - collection of streams. Each stream presents single unit of serialized HL7Objects (Message or Batch or BatchFile.).
      Throws:
        `java.io.IOException`