|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jSyncManager.API.Tools.UnsignedByte
A simple class for manipulating standard Java signed bytes as if they were Unsigned bytes. This class is populated with static methods, and thus cannot be instantiated.
Method Summary | |
---|---|
static byte |
increment(byte b)
Increments the given byte by one. |
static int |
intValue(byte b)
Returns the value of the specified byte in unsigned form as an integer. |
static java.lang.String |
toString(byte b)
Returns the string representation of the specified byte in unsigned form as a two-digit hex value. |
static java.lang.String |
toString(byte[] b)
Returns an array of bytes as a human-readable String. |
static java.lang.String |
toString(byte[] b,
int length)
Returns an array of bytes as a human-readable String. |
static char |
unsignedBytes2Char(byte b1,
byte b2)
Converts two bytes into a single char value. |
static int |
unsignedBytes2Int(byte b1,
byte b2,
byte b3,
byte b4)
Converts four bytes into a single int value. |
Methods inherited from class java.lang.Object |
---|
|
Method Detail |
public static byte increment(byte b)
b
- the byte to increment.public static int intValue(byte b)
b
- the byte the unsign and return as an int.public static java.lang.String toString(byte b)
b
- the byte to represent as a hex stringpublic static char unsignedBytes2Char(byte b1, byte b2)
b1
- the first (high order) byte.b2
- the second (low-order) byte.public static int unsignedBytes2Int(byte b1, byte b2, byte b3, byte b4)
b1
- the first (high order) byte.b2
- the second byte.b3
- the third byte.b4
- the fourth (low-order) byte.public static java.lang.String toString(byte[] b, int length)
b
- an array of bytes.length
- the number of bytes to dump.public static java.lang.String toString(byte[] b)
b
- an array of bytes.
|
jSyncManager | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |