public class BinaryMessageUtils extends Object
| 构造器和说明 |
|---|
BinaryMessageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List |
getArray(byte[] data,
int offset)
获得offset list
|
static List<com.aliyun.drc.client.message.ByteString> |
getByteStringList(byte[] data,
long offset)
从offset处获得string list
|
static String |
getString(byte[] data,
int offset,
String encoding)
从offset取string
|
public static String getString(byte[] data, int offset, String encoding) throws UnsupportedEncodingException
data - byte arrayoffset - offsetencoding - encodingUnsupportedEncodingException - UnsupportedEncodingExceptionpublic static List getArray(byte[] data, int offset) throws IOException
data - byte arrayoffset - offsetIOException - IOExceptionCopyright © 2017. All Rights Reserved.