public class TCaplusUtil extends Object
| Constructor and Description |
|---|
TCaplusUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
bytes2ToInteger(byte[] bytes,
int offset) |
static int |
bytes4ToInteger(byte[] bytes,
int offset) |
static String |
bytesToString(byte[] bytes) |
static String |
bytesToString(byte[] bytes,
int offset,
int length) |
static int |
byteStringCmp(byte[] left,
byte[] right) |
static int |
byteStringCmp(byte[] left,
String right) |
static String |
cmd2Str(int cmd) |
static String |
convertUnit(long val,
String unit) |
static String |
convertUTC(long utc) |
static String |
err2Str(int err) |
static String |
getStackTrace(Throwable e) |
static void |
integerTo2Bytes(int value,
byte[] buffer,
int offset) |
static void |
integerTo4Bytes(int value,
byte[] buffer,
int offset) |
static boolean |
isInnerCmd(int cmd) |
static boolean |
isMultiRsp(short magic,
int cmd) |
static long |
microTime() |
static void |
sleep(long millis) |
static byte[] |
stringToByteString(String str) |
static void |
stringToByteString(String str,
byte[] dest) |
static void |
stringToByteString(String str,
byte[] buffer,
int offset) |
public static void integerTo2Bytes(int value,
byte[] buffer,
int offset)
public static void integerTo4Bytes(int value,
byte[] buffer,
int offset)
public static int bytes2ToInteger(byte[] bytes,
int offset)
public static int bytes4ToInteger(byte[] bytes,
int offset)
public static String bytesToString(byte[] bytes, int offset, int length)
public static String bytesToString(byte[] bytes)
public static int byteStringCmp(byte[] left,
byte[] right)
public static int byteStringCmp(byte[] left,
String right)
public static void stringToByteString(String str, byte[] dest)
public static byte[] stringToByteString(String str)
public static void stringToByteString(String str, byte[] buffer, int offset)
public static String convertUTC(long utc)
public static String cmd2Str(int cmd)
public static String err2Str(int err)
public static boolean isMultiRsp(short magic,
int cmd)
public static boolean isInnerCmd(int cmd)
public static void sleep(long millis)
public static long microTime()
Copyright © 2026. All rights reserved.