Package zmq.io

Class Msgs


  • public class Msgs
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Msgs()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean startsWith​(Msg msg, java.lang.String data, boolean includeLength)
      Checks if the message starts with the given string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Msgs

        private Msgs()
    • Method Detail

      • startsWith

        public static boolean startsWith​(Msg msg,
                                         java.lang.String data,
                                         boolean includeLength)
        Checks if the message starts with the given string.
        Parameters:
        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.
        Returns:
        true if the message starts with the given string, otherwise false.