| |
|
| java.lang.Object com.sun.midp.jsr082.BluetoothUtils
BluetoothUtils | public class BluetoothUtils (Code) | | Class contains Bluetooth helper methods.
|
Field Summary | |
final public static int | BTADDR_SIZE Size of byte representation of Bluetooth address. |
Method Summary | |
public static byte[] | getAddressBytes(String btaddr) Converts Bluetooth address from string to byte array representation. | public static String | getAddressString(byte[] btaddr) Converts Bluetooth address from byte array to string representation. |
BTADDR_SIZE | final public static int BTADDR_SIZE(Code) | | Size of byte representation of Bluetooth address.
|
getAddressBytes | public static byte[] getAddressBytes(String btaddr) throws IllegalArgumentException(Code) | | Converts Bluetooth address from string to byte array representation.
Parameters: btaddr - Bluetooth address as string inuser-friendly byte order (big-endian) without comma separator 6-bytes byte array containing Bluetooth address inBluetooth byte order (little-endian) throws: IllegalArgumentException - if input address is invalid |
getAddressString | public static String getAddressString(byte[] btaddr) throws IllegalArgumentException(Code) | | Converts Bluetooth address from byte array to string representation.
Parameters: btaddr - 6-bytes byte array containing Bluetooth address inBluetooth byte order (little-endian) Bluetooth address as string inuser-friendly byte order (big-endian) without comma separator throws: IllegalArgumentException - if input address is invalid |
|
|
|