|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.ByteFunctions
public class ByteFunctions
| Constructor Summary | |
|---|---|
ByteFunctions()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
byteToHexString(byte[] bytes)
Converts the given byte array to a string representation of the byte array, encoded as hex digits. |
static long |
byteToLong(byte[] b)
Returns a long from a byte array representation. |
static byte[] |
hexStringToByte(java.lang.String string)
Converts the given string representation of the hex byte array as a byte array. |
static byte[] |
longToByte(long l)
Returns a byte array representation of a long value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteFunctions()
| Method Detail |
|---|
public static byte[] longToByte(long l)
l -
public static long byteToLong(byte[] b)
b -
public static java.lang.String byteToHexString(byte[] bytes)
bytes -
public static byte[] hexStringToByte(java.lang.String string)
string -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||