|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkz.gamma.hardware.util.DataConverter
public class DataConverter
| Constructor Summary | |
|---|---|
DataConverter()
|
|
| Method Summary | |
|---|---|
static byte[] |
byteArrayToByteArray(byte[] srcByte)
Returns this java byte array as a null-terminated byte array. |
static java.lang.String |
byteArrayToString(byte[] array)
Converts a null-terminated byte array to java string. |
static byte[] |
getArrayWithoutNulls(byte[] data,
int offset)
Вернуть массив без NULL-данных |
static int |
getSizeWithoutNulls(byte[] data,
int offset)
Вернуть размер массива без NULL-данных |
static byte[] |
stringToByteArray(java.lang.String str)
Returns this java string as a null-terminated byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataConverter()
| Method Detail |
|---|
public static byte[] stringToByteArray(java.lang.String str)
str - The given string to be converted.
public static byte[] byteArrayToByteArray(byte[] srcByte)
srcByte - The given byte array to be converted.
public static java.lang.String byteArrayToString(byte[] array)
array - The given array to be converted.
public static int getSizeWithoutNulls(byte[] data,
int offset)
data - Массивoffset - Смещение
public static byte[] getArrayWithoutNulls(byte[] data,
int offset)
data - Массивoffset - Смещение
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||