Package net.dona.doip.util

# Class InDoipMessageUtil

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

public class InDoipMessageUtil extends Object
Utility methods for `InDoipMessage`.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `InDoipMessageUtil()`

- ## Method Summary

  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 Details

  - ### InDoipMessageUtil

    public InDoipMessageUtil()

- ## Method Details

  - ### getFirstSegment

    public static InDoipSegment getFirstSegment(InDoipMessage in) throws 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:
      `IOException`

  - ### isEmpty

    public static boolean isEmpty(InDoipMessage in) throws 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:
      `IOException`