Java Doc for NativeBCC.java in  » 6.0-JDK-Modules » j2me » com » sun » kvem » jsr082 » bluetooth » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.kvem.jsr082.bluetooth 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.kvem.jsr082.bluetooth.NativeBCC

NativeBCC
public class NativeBCC extends BCC (Code)
Native-based Bluetooth Control Center. For many operations, this implementation relies on BluetoothStack class.



Constructor Summary
protected  NativeBCC()
     Constructs the only instance of this class.

Method Summary
public  booleanauthenticate(String address)
     Authenticates remote device.
native public  booleanauthorize(String address, int handle)
     Authorizes a Bluetooth connection.
native public  booleanbond(String address, String pin)
     Initiates pairing with a remote device.
native public  booleanconfirmEnable()
     Asks user whether Bluetooth radio is allowed to be turned on.
public  booleanenableBluetooth()
     Enables Bluetooth radio and the Bluetooth protocol stack for use.
public  booleanencrypt(String address, boolean enable)
     Enables or disables encryption of data exchanges.
public  intgetAccessCode()
    
public  StringgetBluetoothAddress()
     Returns local Bluetooth address.
public  DeviceClassgetDeviceClass()
    
public  StringgetFriendlyName()
     Returns user-friendly name for the local device.
public  StringgetFriendlyName(String address)
     Retrieves the user-friendly name for specified remote device.
native public  StringgetPasskey(String address)
     Retrieves PIN code to use for pairing with a remote device.
public  VectorgetPreknownDevices()
     Returns list of preknown devices in a packed string.
native public  booleanisAuthenticated(String address)
     Checks if a remote device was authenticated.
public  booleanisBluetoothEnabled()
     Queries the power state of the Bluetooth device.
native public  booleanisConnectable()
     Determines if the local device is in connectable mode.
native public  booleanisConnected(String address)
     Checks if there is a connection to the remote device.
native public  booleanisEncrypted(String address)
     Checks if connections to a remote device are encrypted.
native public  booleanisPaired(String address)
     Checks if the local device has a bond with a remote device.
native public  booleanisTrusted(String address)
     Checks if a remote device is trusted (authorized for all services).
public  booleansetAccessCode(int accessCode)
    
native public  booleansetEncryption(String address, boolean enable)
     Increases or decreases encryption request counter for a remote device.
public  booleansetServiceClasses(int classes)
    


Constructor Detail
NativeBCC
protected NativeBCC()(Code)
Constructs the only instance of this class.




Method Detail
authenticate
public boolean authenticate(String address)(Code)
Authenticates remote device.
Parameters:
  address - Bluetooth address of a remote device true if the device was authenticated, false otherwise



authorize
native public boolean authorize(String address, int handle)(Code)
Authorizes a Bluetooth connection.
Parameters:
  address - Bluetooth address of a remote device
Parameters:
  handle - handle for the service record of the srvice the remotedevice is trying to access true if authorization succeeded, false otherwise



bond
native public boolean bond(String address, String pin)(Code)
Initiates pairing with a remote device.
Parameters:
  address - the Bluetooth address of the device with which to pair
Parameters:
  pin - an array containing the PIN code true if the device was authenticated, false otherwise



confirmEnable
native public boolean confirmEnable()(Code)
Asks user whether Bluetooth radio is allowed to be turned on. true if user has allowed to enable Bluetooth, false otherwise



enableBluetooth
public boolean enableBluetooth()(Code)
Enables Bluetooth radio and the Bluetooth protocol stack for use. true if the operation succeeded, false otherwise



encrypt
public boolean encrypt(String address, boolean enable)(Code)
Enables or disables encryption of data exchanges.
Parameters:
  address - the Bluetooth address of the remote device
Parameters:
  enable - indicated whether the encryption needs to be enabled true if the encryption has been changed, false otherwise



getAccessCode
public int getAccessCode()(Code)



getBluetoothAddress
public String getBluetoothAddress()(Code)
Returns local Bluetooth address. local Bluetooth address.



getDeviceClass
public DeviceClass getDeviceClass()(Code)



getFriendlyName
public String getFriendlyName()(Code)
Returns user-friendly name for the local device. user-friendly name for the local device, ornull if the name could not be retrieved
See Also:   LocalDevice.getFriendlyName



getFriendlyName
public String getFriendlyName(String address)(Code)
Retrieves the user-friendly name for specified remote device.
Parameters:
  address - Bluetooth address of a remote device name of the remote device, ornull if the name could not be retrieved
See Also:   RemoteDevice.getFriendlyName



getPasskey
native public String getPasskey(String address)(Code)
Retrieves PIN code to use for pairing with a remote device. If the PIN code is not known, PIN entry dialog is displayed.
Parameters:
  address - the Bluetooth address of the remote device string containing the PIN code



getPreknownDevices
public Vector getPreknownDevices()(Code)
Returns list of preknown devices in a packed string. vector containing preknown devices



isAuthenticated
native public boolean isAuthenticated(String address)(Code)
Checks if a remote device was authenticated.
Parameters:
  address - Bluetooth address of a remote device true if the device was authenticated, false otherwise



isBluetoothEnabled
public boolean isBluetoothEnabled()(Code)
Queries the power state of the Bluetooth device. true is the Bluetooth device is on,false otherwise.



isConnectable
native public boolean isConnectable()(Code)
Determines if the local device is in connectable mode. true if the device is connectable, false otherwise



isConnected
native public boolean isConnected(String address)(Code)
Checks if there is a connection to the remote device.
Parameters:
  address - the Bluetooth address of the remote device true if connection is established with the remote device



isEncrypted
native public boolean isEncrypted(String address)(Code)
Checks if connections to a remote device are encrypted.
Parameters:
  address - Bluetooth address of the remote device true if connections to the device are encrypted, false otherwise



isPaired
native public boolean isPaired(String address)(Code)
Checks if the local device has a bond with a remote device.
Parameters:
  address - Bluetooth address of a remote device true if the two devices were paired, false otherwise



isTrusted
native public boolean isTrusted(String address)(Code)
Checks if a remote device is trusted (authorized for all services).
Parameters:
  address - Bluetooth address of a remote device true if the device is trusted, false otherwise



setAccessCode
public boolean setAccessCode(int accessCode)(Code)



setEncryption
native public boolean setEncryption(String address, boolean enable)(Code)
Increases or decreases encryption request counter for a remote device.
Parameters:
  address - the Bluetooth address of the remote device
Parameters:
  enable - indicated whether the encryption needs to be enabled true if the encryption needs to been changed, false otherwise



setServiceClasses
public boolean setServiceClasses(int classes)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.