Class InDoipMessageUtil


  • public class InDoipMessageUtil
    extends java.lang.Object
    Utility methods for InDoipMessage.
    • 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