public class NetStreamUtils
extends java.lang.Object
Constructor and Description |
---|
NetStreamUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
decodeArray(java.nio.ByteBuffer bb) |
static java.lang.Boolean |
decodeBoolean(java.nio.ByteBuffer bb) |
static java.lang.Boolean[] |
decodeBooleanArray(java.nio.ByteBuffer bb) |
static java.lang.Byte |
decodeByte(java.nio.ByteBuffer bb) |
static java.lang.Byte[] |
decodeByteArray(java.nio.ByteBuffer bb) |
static java.lang.Double |
decodeDouble(java.nio.ByteBuffer bb) |
static java.lang.Double[] |
decodeDoubleArray(java.nio.ByteBuffer bb) |
static java.lang.Float |
decodeFloat(java.nio.ByteBuffer bb) |
static java.lang.Float[] |
decodeFloatArray(java.nio.ByteBuffer bb) |
static java.lang.Integer |
decodeInt(java.nio.ByteBuffer bb) |
static java.lang.Integer[] |
decodeIntArray(java.nio.ByteBuffer bb) |
static java.lang.Long |
decodeLong(java.nio.ByteBuffer bb) |
static java.lang.Long[] |
decodeLongArray(java.nio.ByteBuffer bb) |
static java.lang.Short |
decodeShort(java.nio.ByteBuffer bb) |
static java.lang.Short[] |
decodeShortArray(java.nio.ByteBuffer bb) |
static java.lang.String |
decodeString(java.nio.ByteBuffer bb) |
static java.lang.String[] |
decodeStringArray(java.nio.ByteBuffer bb) |
static int |
decodeType(java.nio.ByteBuffer bb) |
static long |
decodeUnsignedVarint(java.nio.ByteBuffer bb) |
static java.lang.Object |
decodeValue(java.nio.ByteBuffer bb,
int valueType) |
static long |
decodeVarint(java.nio.ByteBuffer bb) |
static java.nio.ByteBuffer |
encodeArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeBoolean(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeBooleanArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeByte(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeByteArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeDouble(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeDoubleArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeFloat(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeFloatArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeInt(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeIntArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeLong(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeLongArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeShort(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeShortArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeString(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeStringArray(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeUnsignedVarint(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeValue(java.lang.Object in,
int valueType) |
static java.nio.ByteBuffer |
encodeVarint(java.lang.Object in) |
static java.nio.ByteBuffer |
encodeVarintArray(java.lang.Object in) |
static ByteFactory |
getDefaultNetStreamFactory() |
static int |
getType(java.lang.Object value) |
static int |
getVarintSize(long data) |
static void |
putVarint(java.nio.ByteBuffer buffer,
long number,
int byteSize) |
public static ByteFactory getDefaultNetStreamFactory()
public static int getType(java.lang.Object value)
public static int getVarintSize(long data)
public static void putVarint(java.nio.ByteBuffer buffer, long number, int byteSize)
public static java.nio.ByteBuffer encodeValue(java.lang.Object in, int valueType)
public static java.nio.ByteBuffer encodeUnsignedVarint(java.lang.Object in)
public static java.nio.ByteBuffer encodeVarint(java.lang.Object in)
public static java.nio.ByteBuffer encodeString(java.lang.Object in)
public static java.nio.ByteBuffer encodeArray(java.lang.Object in)
public static java.nio.ByteBuffer encodeDoubleArray(java.lang.Object in)
public static java.nio.ByteBuffer encodeStringArray(java.lang.Object in)
public static java.nio.ByteBuffer encodeDouble(java.lang.Object in)
in
- The double to encodepublic static java.nio.ByteBuffer encodeFloatArray(java.lang.Object in)
in
- The float array to encodepublic static java.nio.ByteBuffer encodeFloat(java.lang.Object in)
in
- The float to encodepublic static java.nio.ByteBuffer encodeLongArray(java.lang.Object in)
in
- The long array to encodepublic static java.nio.ByteBuffer encodeLong(java.lang.Object in)
in
- The long to encodepublic static java.nio.ByteBuffer encodeIntArray(java.lang.Object in)
in
- The integer array to encodepublic static java.nio.ByteBuffer encodeInt(java.lang.Object in)
in
- The integer to encodepublic static java.nio.ByteBuffer encodeShortArray(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeShort(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeByteArray(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeByte(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeBooleanArray(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeBoolean(java.lang.Object in)
in
- public static java.nio.ByteBuffer encodeVarintArray(java.lang.Object in)
public static int decodeType(java.nio.ByteBuffer bb)
bb
- public static java.lang.Object decodeValue(java.nio.ByteBuffer bb, int valueType)
public static java.lang.Object[] decodeArray(java.nio.ByteBuffer bb)
bb
- public static java.lang.String decodeString(java.nio.ByteBuffer bb)
public static java.lang.String[] decodeStringArray(java.nio.ByteBuffer bb)
public static java.lang.Boolean decodeBoolean(java.nio.ByteBuffer bb)
public static java.lang.Byte decodeByte(java.nio.ByteBuffer bb)
public static long decodeUnsignedVarint(java.nio.ByteBuffer bb)
public static long decodeVarint(java.nio.ByteBuffer bb)
public static java.lang.Short decodeShort(java.nio.ByteBuffer bb)
public static java.lang.Integer decodeInt(java.nio.ByteBuffer bb)
public static java.lang.Long decodeLong(java.nio.ByteBuffer bb)
public static java.lang.Float decodeFloat(java.nio.ByteBuffer bb)
public static java.lang.Double decodeDouble(java.nio.ByteBuffer bb)
public static java.lang.Integer[] decodeIntArray(java.nio.ByteBuffer bb)
public static java.lang.Boolean[] decodeBooleanArray(java.nio.ByteBuffer bb)
public static java.lang.Byte[] decodeByteArray(java.nio.ByteBuffer bb)
public static java.lang.Double[] decodeDoubleArray(java.nio.ByteBuffer bb)
public static java.lang.Float[] decodeFloatArray(java.nio.ByteBuffer bb)
public static java.lang.Long[] decodeLongArray(java.nio.ByteBuffer bb)
public static java.lang.Short[] decodeShortArray(java.nio.ByteBuffer bb)