org.eclipse.paho.client.mqttv3.internal.wire
Class MultiByteInteger

java.lang.Object
  extended by org.eclipse.paho.client.mqttv3.internal.wire.MultiByteInteger

public class MultiByteInteger
extends Object

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


Constructor Summary
MultiByteInteger(long value)
           
MultiByteInteger(long value, int length)
           
 
Method Summary
 int getEncodedLength()
          Returns the number of bytes read when decoding this MBI.
 long getValue()
          Returns the value of this MBI.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiByteInteger

public MultiByteInteger(long value)

MultiByteInteger

public MultiByteInteger(long value,
                        int length)
Method Detail

getEncodedLength

public int getEncodedLength()
Returns the number of bytes read when decoding this MBI.


getValue

public long getValue()
Returns the value of this MBI.



Copyright © 2013. All Rights Reserved.