Java Doc for BluetoothUrl.java in  » 6.0-JDK-Modules » j2me » com » sun » midp » io » 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.midp.io 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.midp.io.BluetoothUrl

BluetoothUrl
public class BluetoothUrl (Code)
Represents a bluetooth url, i.e. connection string. There are two ways of usage. First one is constructing it giving url string in order to parse it into a set of fields. Second one is constructig it giving fields values in order to get string representation. Whenever incompatible url parts are found IllegalArgumentException is thrown.


Field Summary
final public static  intL2CAP
     Value to indicate L2CAP protocol.
final public static  intOBEX
     Value to indicate OBEX protocol.
final public static  intRFCOMM
     Value to indicate RFCOMM protocol.
final public static  intUNKNOWN
     Value to indicate unknown protocol.
final public static  UUIDUUID_SDP
     UUID value to create a transport for Service Discovery Protocol.
public  Stringaddress
     Keeps server address for client url, "localhost" for server.
public  booleanauthenticate
     Authenticate parameter.
public  booleanauthorize
     Authorize parameter.
public  StringcaseSensitiveUrl
     Url string to parse, original case.
public  booleanencrypt
     Encrypt parameter.
public  booleanisServer
     Indicates if it is a sever connection string.
public  booleanmaster
     Master parameter, true by default for server.
public  Stringname
     Name parameter of server url, null for client's one.
public  intport
     PSM for L2CAP or channel id for RFCOMM.
public  intprotocol
     Indicates protocol type.
public  intreceiveMTU
     RecieveMTU parameter.
public  inttransmitMTU
     TransmitMTU parameter.
public  Stringuuid
     Keeps uuid from server connection string, null for client's one.

Constructor Summary
public  BluetoothUrl(String urlString)
     Constructs url object by specified url string.
public  BluetoothUrl(int protocol, String urlString)
     Constructs url object by specified protocol and url string without leading protocol name and colon or if protocol is unknown by s string that contains full url.
public  BluetoothUrl(int protocol, String urlString, Object systemToken)
     Constructs url object with specified protocol, url and special system token.

Method Summary
public static  BluetoothUrlcreateClientUrl(int protocol, String btaddr, int port)
     Creates url that represents client connection string.
Parameters:
  protocol - identifies protocol.
public  StringgetResourceName()
     Creates string representation of the URL without parameters.
final public  booleanisSystem()
     Tests if this URL is system one.
public  StringtoString()
     Checks url parts consistency and creates string representation.

Field Detail
L2CAP
final public static int L2CAP(Code)
Value to indicate L2CAP protocol.



OBEX
final public static int OBEX(Code)
Value to indicate OBEX protocol.



RFCOMM
final public static int RFCOMM(Code)
Value to indicate RFCOMM protocol.



UNKNOWN
final public static int UNKNOWN(Code)
Value to indicate unknown protocol.



UUID_SDP
final public static UUID UUID_SDP(Code)
UUID value to create a transport for Service Discovery Protocol.



address
public String address(Code)
Keeps server address for client url, "localhost" for server.



authenticate
public boolean authenticate(Code)
Authenticate parameter.



authorize
public boolean authorize(Code)
Authorize parameter. L2CAP specific.



caseSensitiveUrl
public String caseSensitiveUrl(Code)
Url string to parse, original case. Required for correct "name" parameter parsing for it is case-sensitive.



encrypt
public boolean encrypt(Code)
Encrypt parameter.



isServer
public boolean isServer(Code)
Indicates if it is a sever connection string.



master
public boolean master(Code)
Master parameter, true by default for server.



name
public String name(Code)
Name parameter of server url, null for client's one. L2CAP, RFCOMM specific.



port
public int port(Code)
PSM for L2CAP or channel id for RFCOMM.



protocol
public int protocol(Code)
Indicates protocol type.



receiveMTU
public int receiveMTU(Code)
RecieveMTU parameter. L2CAP specific.



transmitMTU
public int transmitMTU(Code)
TransmitMTU parameter. L2CAP specific.



uuid
public String uuid(Code)
Keeps uuid from server connection string, null for client's one. L2CAP, RFCOMM specific.




Constructor Detail
BluetoothUrl
public BluetoothUrl(String urlString)(Code)
Constructs url object by specified url string. Constructing BluetoothUrl in this manner is a way to parse an url represented by string.
Parameters:
  urlString - url string.



BluetoothUrl
public BluetoothUrl(int protocol, String urlString)(Code)
Constructs url object by specified protocol and url string without leading protocol name and colon or if protocol is unknown by s string that contains full url.
Parameters:
  protocol - prootocol type, must be one ofL2CAP, RFCOMM, OBEX, UNKNOWN.
Parameters:
  urlString - whole url if protocol value isUNKNOWN, a part of url string beyond"protocol:" otherwise.



BluetoothUrl
public BluetoothUrl(int protocol, String urlString, Object systemToken)(Code)
Constructs url object with specified protocol, url and special system token.
See Also:    BluetoothUrl(int, String)
Parameters:
  protocol - prootocol type
Parameters:
  urlString - URL
Parameters:
  systemToken - special object that validates this URL as systemif has proper value, usually it is null




Method Detail
createClientUrl
public static BluetoothUrl createClientUrl(int protocol, String btaddr, int port) throws IllegalArgumentException(Code)
Creates url that represents client connection string.
Parameters:
  protocol - identifies protocol. Should be one ofBluetoothUrl.L2CAP, BluetoothUrl.RFCOMM, BluetoothUrl.OBEX
Parameters:
  btaddr - Bluetooth address of server device.
Parameters:
  port - PSM in case of L2CAP or channel id otherwise. BluetoothUrl instance that representsdesired connection string.
exception:
  IllegalArgument - exception if provived parameters are invalid.



getResourceName
public String getResourceName()(Code)
Creates string representation of the URL without parameters. "PROTOCOL://ADDRESS" string.



isSystem
final public boolean isSystem()(Code)
Tests if this URL is system one. System URL can only by created by SDP server or client and is processed in special way. true if this url is a system one createdby SDP routines, false otherwise



toString
public String toString()(Code)
Checks url parts consistency and creates string representation. string representation of the URL.
exception:
  IllegalArgumentException - if URL parts are inconsistent.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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