Package 

Class MultiByteInteger


  • 
    public class MultiByteInteger
    
                        

    Represents a Multi-Byte Integer (MBI), as defined by the MQTT V3 specification.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long value
    • Method Summary

      Modifier and Type Method Description
      long getValue() Returns the value of this MBI.
      int getEncodedLength() Returns the number of bytes read when decoding this MBI.
      • Methods inherited from class java.lang.Object

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

      • MultiByteInteger

        MultiByteInteger(long value)
      • MultiByteInteger

        MultiByteInteger(long value, int length)
    • Method Detail

      • getValue

         long getValue()

        Returns the value of this MBI.

      • getEncodedLength

         int getEncodedLength()

        Returns the number of bytes read when decoding this MBI.