Package net.dona.doip.util
Class InDoipMessageUtil
- java.lang.Object
-
- net.dona.doip.util.InDoipMessageUtil
-
public class InDoipMessageUtil extends java.lang.Object
Utility methods forInDoipMessage
.
-
-
Constructor Summary
Constructors Constructor Description InDoipMessageUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InDoipSegment
getFirstSegment(InDoipMessage in)
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.
-
-
-
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 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:
java.io.IOException
-
-