| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrcx.rcxdirect.RCXMath
public class RCXMath
This class provides some basic RCXMath operations.
| Constructor Summary | |
|---|---|
| RCXMath() | |
| Method Summary | |
|---|---|
| static java.lang.String | byteArrayToString(byte[] b)converts a byte array into a String in hexidecimal form. | 
| static java.lang.String | byteToString(byte b)given a byte, return a String like: "09" or "AA" etc.. | 
| static byte | getLowByte(int integer)gets the low byte of an int | 
| static byte | getSecondLowByte(int integer)gets the second low byte of an int | 
| static byte | stringToByte(java.lang.String s)given a String like: "09" or "AA" etc, return the relevant byte. | 
| static byte[] | stringToByteArray(java.lang.String bstr)converts a hexidecimal form of String to a byte array. | 
| static byte | toByte(java.lang.String string)converts a string to a byte. | 
| static int | toInt(java.lang.String string)converts a string to a int. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public RCXMath()
| Method Detail | 
|---|
public static byte toByte(java.lang.String string)
string - the String to be converted to byte.
public static byte stringToByte(java.lang.String s)
s - String of byte in hexadecimal format
public static java.lang.String byteToString(byte b)
b - byte to turn to a String
public static int toInt(java.lang.String string)
string - the String to be converted to an int.
public static byte getLowByte(int integer)
integer - the int whose low byte is required.
public static byte getSecondLowByte(int integer)
integer - the int whose second low byte is required.
public static java.lang.String byteArrayToString(byte[] b)
b - byte[] to turn to a String
public static byte[] stringToByteArray(java.lang.String bstr)
bstr - String of bytes in hexadecimal format
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||