public class RemoteDevice
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
RemoteDevice(java.lang.String address)
Creates a Bluetooth device based upon its address.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBluetoothAddress()
Retrieves the Bluetooth address of this device.
|
java.lang.String |
getFriendlyName()
Returns the name of this device.
|
java.lang.String |
toString()
Returns a string representation of the object in the format "address - friendlyName".
|
protected RemoteDevice(java.lang.String address)
address - the address of the Bluetooth device as a 12 character hex stringpublic java.lang.String getFriendlyName()
throws IOException
IOExceptionpublic java.lang.String getBluetoothAddress()
public java.lang.String toString()
toString in class java.lang.Object