public final class ByteUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Charset |
DEFAULT_CHARSET |
static String |
DEFAULT_CHARSET_NAME |
static org.slf4j.Logger |
log |
static ByteBuffer |
SPLIT |
static boolean |
testing
if it is testing,check key argument even if use binary protocol.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
byte2hex(byte b,
StringBuffer buf) |
static void |
checkKey(byte[] keyBytes) |
static void |
checkKey(String key) |
static void |
getBytes(long i,
int index,
byte[] buf) |
static byte[] |
getBytes(String k) |
static String |
getString(byte[] bytes) |
static void |
int2hex(int a,
StringBuffer str) |
static boolean |
isNumber(String string) |
static String |
nextLine(ByteBuffer buffer)
�峰�涓��琛�
|
static int |
normalizeCapacity(int requestedCapacity) |
static int |
setArguments(byte[] bb,
int index,
Object... args) |
static void |
setArguments(IoBuffer bb,
Object... args) |
static void |
setProtocol(Protocol protocol) |
static void |
short2hex(int a,
StringBuffer str) |
static boolean |
stepBuffer(ByteBuffer buffer,
int remaining) |
static int |
stringSize(int x) |
static int |
stringSize(long x) |
public static final org.slf4j.Logger log
public static final Charset DEFAULT_CHARSET
public static final ByteBuffer SPLIT
public static boolean testing
public static boolean isNumber(String string)
public static final byte[] getBytes(String k)
public static final int setArguments(byte[] bb,
int index,
Object... args)
public static final void checkKey(byte[] keyBytes)
public static final void checkKey(String key)
public static void setProtocol(Protocol protocol)
public static final int normalizeCapacity(int requestedCapacity)
public static final boolean stepBuffer(ByteBuffer buffer, int remaining)
public static final String nextLine(ByteBuffer buffer)
buffer - public static String getString(byte[] bytes)
public static void byte2hex(byte b,
StringBuffer buf)
public static void int2hex(int a,
StringBuffer str)
public static void short2hex(int a,
StringBuffer str)
public static void getBytes(long i,
int index,
byte[] buf)
public static final int stringSize(int x)
public static final int stringSize(long x)
Copyright © 2013. All Rights Reserved.