|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.bluetooth.RemoteDevice
public class RemoteDevice
Represents a remote Bluetooth device.
| Constructor Summary | |
|---|---|
protected |
RemoteDevice(String addr)
Note: The standard JSR 82 method for obtaining a RemoteDevice uses a String rather than byte[]. |
|
RemoteDevice(String name,
String deviceAddr,
byte[] devclass)
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines if two RemoteDevices are equal. |
String |
getBluetoothAddress()
|
String |
getDeviceAddr()
|
byte[] |
getDeviceClass()
|
String |
getFriendlyName(boolean alwaysAsk)
|
static RemoteDevice |
getRemoteDevice(Connection conn)
|
boolean |
isAuthenticated()
Indicates if the remote device has been properly paired (authenticated). |
boolean |
isEncrypted()
Always returns false because NXT BC4 chip doesn't encrypt. |
void |
setDeviceAddr(String deviceAddr)
|
void |
setDeviceClass(byte[] devclass)
|
void |
setFriendlyName(String fName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected RemoteDevice(String addr)
addr -
public RemoteDevice(String name,
String deviceAddr,
byte[] devclass)
| Method Detail |
|---|
public static RemoteDevice getRemoteDevice(Connection conn)
throws IOException
IOExceptionpublic void setDeviceAddr(String deviceAddr)
public String getDeviceAddr()
public void setFriendlyName(String fName)
public boolean isAuthenticated()
public boolean isEncrypted()
public String getFriendlyName(boolean alwaysAsk)
alwaysAsk - true causes the method to contact the remote device for the name. false and it will use the known name.
public void setDeviceClass(byte[] devclass)
public String getBluetoothAddress()
public boolean equals(Object obj)
equals in class Objectpublic byte[] getDeviceClass()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||