Class Base64VLQ


  • class Base64VLQ
    extends java.lang.Object
    Encode an integer value as Base64VLQ
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Base64VLQ()
      no instance
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void appendBase64VLQ​(java.lang.Appendable out, int value)
      Writes a VLQ encoded value to the provide target.
      private static int toVLQSigned​(int value)
      Move the signet bit from the first position (two-complement value) to the last bit position.
      • Methods inherited from class java.lang.Object

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

      • Base64VLQ

        private Base64VLQ()
        no instance
    • Method Detail

      • toVLQSigned

        private static int toVLQSigned​(int value)
        Move the signet bit from the first position (two-complement value) to the last bit position. examples: 1 -> 2; -1 -> 3; 2 -> 4; -2 -> 5
        Parameters:
        value - two-complement value
        Returns:
        converted value
      • appendBase64VLQ

        static void appendBase64VLQ​(java.lang.Appendable out,
                                    int value)
                             throws java.io.IOException
        Writes a VLQ encoded value to the provide target.
        Parameters:
        out - the target
        value - the value
        Throws:
        java.io.IOException - if any I/O error occur