Package net.dona.doip.util
Class InDoipMessageUtil
- java.lang.Object
-
- net.dona.doip.util.InDoipMessageUtil
-
public class InDoipMessageUtil extends java.lang.ObjectUtility methods forInDoipMessage.
-
-
Constructor Summary
Constructors Constructor Description InDoipMessageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InDoipSegmentgetFirstSegment(InDoipMessage in)Returns the first segment of the suppliedInDoipMessage, or null if it is empty.static booleanisEmpty(InDoipMessage in)Returns true is the suppliedInDoipMessageis empty (has no segments), otherwise false.
-
-
-
Method Detail
-
getFirstSegment
public static InDoipSegment getFirstSegment(InDoipMessage in) throws java.io.IOException
Returns the first segment of the suppliedInDoipMessage, or null if it is empty.- Parameters:
in- anInDoipMessage- 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 suppliedInDoipMessageis empty (has no segments), otherwise false.- Parameters:
in- anInDoipMessage- Returns:
- true is the supplied
InDoipMessageis empty (has no segments), otherwise false - Throws:
java.io.IOException
-
-