|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.baidubce.services.iothisk.device.utils.ByteUtils
public class ByteUtils
Provides byte array operation utilities
| Constructor Summary | |
|---|---|
ByteUtils()
|
|
| Method Summary | |
|---|---|
static byte[] |
getCounterBytes(long counter)
Get byte array from counter value |
static byte[] |
toBytesFromHex(String data)
Get byte array from hex string |
static byte[] |
toBytesFromInt(int number)
Get byte array from int type value |
static String |
toHexStringFromBytes(byte[] data)
Get hex string from byte array |
static long |
toLongFromBytes(byte[] data)
Get long value from byte array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteUtils()
| Method Detail |
|---|
public static byte[] toBytesFromHex(String data)
data - specified hex string data
public static String toHexStringFromBytes(byte[] data)
data - specified byte array
public static byte[] toBytesFromInt(int number)
number - specified in type value
public static long toLongFromBytes(byte[] data)
data - specified byte array
public static byte[] getCounterBytes(long counter)
counter - specified counter value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||