public class BinaryMessageUtils extends Object
| 构造器和说明 |
|---|
BinaryMessageUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static List |
getArray(byte[] data,
int offset)
Get list begin with offset.
|
static List<ByteString> |
getByteStringList(byte[] data,
long offset)
Get ByteString begin with offset.
|
static String |
getString(byte[] data,
int offset,
String encoding)
Get string begin with offset.
|
public static String getString(byte[] data, int offset, String encoding) throws UnsupportedEncodingException
data - A bytes array.offset - Reading offset.encoding - String encoding.UnsupportedEncodingException - When the encoding is not supported.public static List getArray(byte[] data, int offset) throws IOException
data - A bytes array.offset - Reading offset.IOException - If data type is unsigned long.public static List<ByteString> getByteStringList(byte[] data, long offset)
data - A bytes array.offset - Reading offset.ByteString.Copyright © 2024. All rights reserved.