final class ProtocolUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static java.lang.ThreadLocal<java.util.Random> |
randomHolder |
| Modifier | Constructor and Description |
|---|---|
private |
ProtocolUtils() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static int |
readInt(java.nio.ByteBuffer buffer) |
(package private) static int |
readIntData(java.nio.ByteBuffer buffer,
int length) |
(package private) static long |
readLong(java.nio.ByteBuffer buffer) |
(package private) static java.lang.String |
readString(java.nio.ByteBuffer buffer) |
(package private) static int |
readUnsignedShort(java.nio.ByteBuffer buffer) |
(package private) static void |
writeByte(java.nio.ByteBuffer buffer,
int type,
int value) |
(package private) static void |
writeBytes(java.nio.ByteBuffer buffer,
int type,
byte[] value) |
(package private) static void |
writeEmpty(java.nio.ByteBuffer buffer,
int type) |
(package private) static void |
writeInt(java.nio.ByteBuffer buffer,
int type,
int value) |
(package private) static void |
writeLong(java.nio.ByteBuffer buffer,
int type,
long value) |
(package private) static void |
writeShort(java.nio.ByteBuffer buffer,
int type,
int value) |
(package private) static void |
writeString(java.nio.ByteBuffer buffer,
byte type,
java.lang.String data) |
(package private) static void |
writeString(java.nio.ByteBuffer buffer,
java.lang.String data) |
static void writeString(java.nio.ByteBuffer buffer,
byte type,
java.lang.String data)
static void writeString(java.nio.ByteBuffer buffer,
java.lang.String data)
static void writeByte(java.nio.ByteBuffer buffer,
int type,
int value)
static void writeShort(java.nio.ByteBuffer buffer,
int type,
int value)
static void writeInt(java.nio.ByteBuffer buffer,
int type,
int value)
static void writeLong(java.nio.ByteBuffer buffer,
int type,
long value)
static void writeBytes(java.nio.ByteBuffer buffer,
int type,
byte[] value)
static void writeEmpty(java.nio.ByteBuffer buffer,
int type)
static java.lang.String readString(java.nio.ByteBuffer buffer)
static int readInt(java.nio.ByteBuffer buffer)
static int readIntData(java.nio.ByteBuffer buffer,
int length)
static int readUnsignedShort(java.nio.ByteBuffer buffer)
static long readLong(java.nio.ByteBuffer buffer)