public class rtUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
rtUtil.Enum |
Modifier and Type | Field and Description |
---|---|
static char[] |
hexArray |
Constructor and Description |
---|
rtUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
byteArray2WordLittleEndian(byte[] data) |
static java.lang.String |
checkPath(java.lang.String path) |
static java.lang.String |
filePath2FolderPath(java.lang.String path) |
static byte |
getHiByte(int id,
java.nio.ByteOrder format) |
static byte |
getLoByte(int id,
java.nio.ByteOrder format) |
static byte[] |
hexStringToByteArray(java.lang.String s)
Преобразование hex-строки в байтовый массив.
|
static short |
path2Id(java.lang.String path) |
static byte[] |
preparePath(java.lang.String path,
java.nio.ByteOrder format) |
static java.lang.String |
toHexString(byte[] bytes)
Преобразование массива в hex-строку.
|
static java.lang.String |
toHexString(int n)
Преобразование числа в hex-строку.
|
public static java.lang.String toHexString(int n)
n
- public static java.lang.String toHexString(byte[] bytes)
bytes
- public static byte[] hexStringToByteArray(java.lang.String s)
s
- public static java.lang.String checkPath(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public static java.lang.String filePath2FolderPath(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public static byte[] preparePath(java.lang.String path, java.nio.ByteOrder format) throws java.lang.Exception
java.lang.Exception
public static short path2Id(java.lang.String path) throws java.lang.Exception
java.lang.Exception
public static byte[] byteArray2WordLittleEndian(byte[] data)
public static byte getLoByte(int id, java.nio.ByteOrder format)
public static byte getHiByte(int id, java.nio.ByteOrder format)