|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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,
int devclass)
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
Determines if two RemoteDevices are equal. |
String |
getBluetoothAddress()
|
String |
getDeviceAddr()
|
int |
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 |
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, int devclass)
Method Detail |
---|
public static RemoteDevice getRemoteDevice(Connection conn) throws IOException
IOException
public 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 String getBluetoothAddress()
public boolean equals(Object obj)
equals
in class Object
public int getDeviceClass()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |