Package net.dona.doip.util

## Class InDoipMessageUtil

- java.lang.Object
- - net.dona.doip.util.InDoipMessageUtil

-     public class InDoipMessageUtil
      extends java.lang.Object

  Utility methods for `InDoipMessage`.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `InDoipMessageUtil()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static InDoipSegment` | `getFirstSegment​(InDoipMessage in)` | Returns the first segment of the supplied `InDoipMessage`, or null if it is empty.
    `static boolean` | `isEmpty​(InDoipMessage in)` | Returns true is the supplied `InDoipMessage` is empty (has no segments), otherwise false.

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

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

- - ### Constructor Detail

    - #### InDoipMessageUtil

          public InDoipMessageUtil()

  - ### Method Detail

    - #### getFirstSegment

          public static InDoipSegment getFirstSegment​(InDoipMessage in)
                                               throws java.io.IOException

      Returns the first segment of the supplied `InDoipMessage`, or null if it is empty.
      Parameters:
        `in` - an `InDoipMessage`
      Returns:
        the first segment of the supplied `InDoipMessage`, or null if it is empty
      Throws:
        `java.io.IOException`

    - #### isEmpty

          public static boolean isEmpty​(InDoipMessage in)
                                 throws java.io.IOException

      Returns true is the supplied `InDoipMessage` is empty (has no segments), otherwise false.
      Parameters:
        `in` - an `InDoipMessage`
      Returns:
        true is the supplied `InDoipMessage` is empty (has no segments), otherwise false
      Throws:
        `java.io.IOException`