Package net.dona.doip.util
Class InDoipMessageUtil
java.lang.Object
net.dona.doip.util.InDoipMessageUtil
Utility methods for
InDoipMessage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InDoipSegmentReturns 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.
-
Constructor Details
-
InDoipMessageUtil
public InDoipMessageUtil()
-
-
Method Details
-
getFirstSegment
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:
IOException
-
isEmpty
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:
IOException
-