|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.manplato.Tools.UnsignedByte
A simple class for manipulating standard Java signed bytes as if they were Unsigned bytes.
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 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 two 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |