final class Base64VLQ
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
Base64VLQ.CharIterator
A simple interface for advancing through a sequence of characters, that
communicates that advance back to the source.
|
Modifier and Type | Field and Description |
---|---|
private static int |
VLQ_BASE |
private static int |
VLQ_BASE_MASK |
private static int |
VLQ_BASE_SHIFT |
private static int |
VLQ_CONTINUATION_BIT |
Modifier | Constructor and Description |
---|---|
private |
Base64VLQ() |
Modifier and Type | Method and Description |
---|---|
static int |
decode(Base64VLQ.CharIterator in)
Decodes the next VLQValue from the provided CharIterator.
|
static void |
encode(java.lang.Appendable out,
int value)
Writes a VLQ encoded value to the provide appendable.
|
private static int |
fromVLQSigned(int value)
Converts to a two-complement value from a value where the sign bit is
is placed in the least significant bit.
|
private static int |
toVLQSigned(int value)
Converts from a two-complement value to a value where the sign bit is
is placed in the least significant bit.
|
private static final int VLQ_BASE_SHIFT
private static final int VLQ_BASE
private static final int VLQ_BASE_MASK
private static final int VLQ_CONTINUATION_BIT
private static int toVLQSigned(int value)
private static int fromVLQSigned(int value)
public static void encode(java.lang.Appendable out, int value) throws java.io.IOException
java.io.IOException
public static int decode(Base64VLQ.CharIterator in)