public class Msgs
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
Msgs() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
startsWith(Msg msg,
java.lang.String data,
boolean includeLength)
Checks if the message starts with the given string.
|
public static boolean startsWith(Msg msg, java.lang.String data, boolean includeLength)
msg - the message to check.data - the string to check the message with. Shall be shorter than 256 characters.includeLength - true if the string in the message is prefixed with the length, false if not.