|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.bluetooth.BluetoothSerialPortInfo
Encapsulates information about the current connection through the Bluetooth serial port.
| Constructor Summary | ||
|
BluetoothSerialPortInfo(byte[] address,
int serverID,
String serviceName)
Creates a new BluetoothSerialPortInfo instance. |
|
|
BluetoothSerialPortInfo(byte[] address,
int pageScanInfo,
String name,
int serverID,
String serviceName)
Creates a new BluetoothSerialPortInfo instance. |
|
|
BluetoothSerialPortInfo(byte[] address,
String name,
int serverID,
String serviceName)
Creates a new BluetoothSerialPortInfo instance. |
|
| Method Summary | ||
|
byte[] |
getDeviceAddress()
Retrieves this connection's device address in raw form. |
|
String |
getDeviceName()
Retrieves this connection's device name. |
|
int |
getDevicePageScanInfo()
Retrieves this connection's device page scan info. |
|
int |
getServerID()
Retrieves this connection's server ID. |
|
String |
getServiceName()
Retrieves this connection's service name. |
|
String |
toString()
Retrieves this information object in string form. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BluetoothSerialPortInfo(byte[] address,
int serverID,
String serviceName)
address - Device address for new connection.serverID - Server ID for the new connection.serviceName - Name for the service provided through the new connection.
public BluetoothSerialPortInfo(byte[] address,
int pageScanInfo,
String name,
int serverID,
String serviceName)
address - Device address for new connection.pageScanInfo - Page scan info for the device, or 0 if unknown.name - Device name, or null if device name is not known.serverID - Server ID for the new connection.serviceName - Name for the service provided through the new connection.
public BluetoothSerialPortInfo(byte[] address,
String name,
int serverID,
String serviceName)
address - Device address for new connection.name - Device name, or null if device name is not known.serverID - Server ID for the new connection.serviceName - Name for the service provided through the new connection.| Method Detail |
public byte[] getDeviceAddress()
public String getDeviceName()
public int getDevicePageScanInfo()
public int getServerID()
public String getServiceName()
public String toString()
Expect retrieved strings to be of the form:
btspp://DeviceAddressAsString:ServerIdAsinteger
This method uses the Bluetooth management entity to convert the device address to a string from the raw form provided to this object's constructor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.