Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 82

javax.bluetooth
Class LocalDevice

java.lang.Object
  extended by javax.bluetooth.LocalDevice

public class LocalDevice
extends java.lang.Object

This class is defined by the JSR-82 specification Java™ APIs for Bluetooth™ Wireless Technology, Version 1.1.


Method Summary
 java.lang.String getBluetoothAddress()
           
 DeviceClass getDeviceClass()
           
 int getDiscoverable()
           
 DiscoveryAgent getDiscoveryAgent()
           
 java.lang.String getFriendlyName()
           
static LocalDevice getLocalDevice()
           
static java.lang.String getProperty(java.lang.String property)
           
 ServiceRecord getRecord(javax.microedition.io.Connection notifier)
           
static boolean isPowerOn()
           
 boolean setDiscoverable(int mode)
           
 void updateRecord(ServiceRecord srvRecord)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalDevice

public static LocalDevice getLocalDevice()
                                  throws BluetoothStateException
Throws:
BluetoothStateException

getDiscoveryAgent

public DiscoveryAgent getDiscoveryAgent()

getFriendlyName

public java.lang.String getFriendlyName()

getDeviceClass

public DeviceClass getDeviceClass()

getProperty

public static java.lang.String getProperty(java.lang.String property)

getDiscoverable

public int getDiscoverable()

getBluetoothAddress

public java.lang.String getBluetoothAddress()

setDiscoverable

public boolean setDiscoverable(int mode)
                        throws BluetoothStateException
Throws:
BluetoothStateException

getRecord

public ServiceRecord getRecord(javax.microedition.io.Connection notifier)

updateRecord

public void updateRecord(ServiceRecord srvRecord)
                  throws ServiceRegistrationException
Throws:
ServiceRegistrationException

isPowerOn

public static boolean isPowerOn()

JSR 82

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 82 specification.