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 InDoipSegment
Returns the first segment of the suppliedInDoipMessage
, or null if it is empty.static boolean
isEmpty
(InDoipMessage in) Returns true is the suppliedInDoipMessage
is 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 suppliedInDoipMessage
is empty (has no segments), otherwise false.- Parameters:
in
- anInDoipMessage
- Returns:
- true is the supplied
InDoipMessage
is empty (has no segments), otherwise false - Throws:
IOException
-