|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.appliancestudio.jbluez.BTAddress
Java representation of a Bluetooth device address.
A Bluetooth device address is comprised of six pairs of hex digits, for example 00:12:34:56:78:9A. This class is based upon the bdaddr_t type, as defined in bluetooth.h of the BlueZ libraries.
| Field Summary | |
short[] |
addr_arr
The address is stored as six 8-bit numbers. |
| Constructor Summary | |
BTAddress()
Default constructor |
|
BTAddress(java.lang.String addr_str)
Creates a BTAddress object from the address addr_str. |
|
| Method Summary | |
boolean |
equals(com.appliancestudio.jbluez.BTAddress compare)
Compares two BTAddress objects to see if they represent the same Bluetooth device address. |
void |
setValue(java.lang.String addr_str)
Set the Bluetooth device address. |
java.lang.String |
toString()
Returns a String representation of the Bluetooth device address in the form " 00:12:34:56:78:9A". |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public short[] addr_arr
| Constructor Detail |
public BTAddress()
public BTAddress(java.lang.String addr_str)
throws BTAddressFormatException
BTAddress object from the address addr_str. The address string should be in the form "00:12:34:56:78:9A".
addr_str - String representation of the Bluetooth device
address.
BTAddressFormatException - If the String is not a parsable
Bluetooth address.| Method Detail |
public void setValue(java.lang.String addr_str)
throws BTAddressFormatException
00:12:34:56:78:AB", that is 6, colon separated pairs of hex digits.
addr_str - String representation of the Bluetooth device
address.
BTAddressFormatException - If the String is not a parsable
Bluetooth address.public java.lang.String toString()
00:12:34:56:78:9A".
toString in class java.lang.Objectpublic boolean equals(com.appliancestudio.jbluez.BTAddress compare)
compare - The BTAddress object to compare to this.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||