public class rtUtil
extends java.lang.Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
rtUtil.Enum |
| Modifier and Type | Field | Description |
|---|---|---|
static char[] |
hexArray |
| Constructor | Description |
|---|---|
rtUtil() |
| Modifier and Type | Method | 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 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 java.lang.String checkPath(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic static java.lang.String filePath2FolderPath(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic static byte[] preparePath(java.lang.String path,
java.nio.ByteOrder format)
throws java.lang.Exception
java.lang.Exceptionpublic static short path2Id(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic 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)