ist.palcom.base.networking
Class BluetoothDiscovery
java.lang.Object
ist.palcom.base.Channel
ist.palcom.base.networking.BluetoothDiscovery
public class BluetoothDiscovery
- extends Channel
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PALCOM_SERVICE_ID
public static javax.bluetooth.UUID PALCOM_SERVICE_ID
BluetoothDiscovery
public BluetoothDiscovery()
throws javax.bluetooth.BluetoothStateException
- Throws:
javax.bluetooth.BluetoothStateException
dataAvailable
public boolean dataAvailable()
- Description copied from class:
Channel
- This method should only be called by the System class, not from other
classes. It is used for implementing select on the JVM, and not used on
the PalVM.
After a call to System's select or selectNow with this Channel (on the
JVM), this method returns true if data is available, false otherwise. If
no call to select or selectNow has been made, the result is undefined.
- Specified by:
dataAvailable in class Channel
getNumberOfServices
public int getNumberOfServices()
getNumberOfDevices
public int getNumberOfDevices()
getServiceAddress
public java.lang.String getServiceAddress()
timeToNextDiscovery
public long timeToNextDiscovery()
searchDevices
public void searchDevices()
throws javax.bluetooth.BluetoothStateException
- Throws:
javax.bluetooth.BluetoothStateException
searchServices
public void searchServices()
throws javax.bluetooth.BluetoothStateException
- Throws:
javax.bluetooth.BluetoothStateException