Motorola C550 ユーザーズマニュアル

ページ / 86
 
Class Descriptions 
Connection
<<Interface>>
DatagramConnection
<<Interface>>
InputConnection
<<Interface>>
OutputConnection
<<Interface>>
StreamConnection
<<Interface>>
ContentConnection
<<Interface>>
HttpConnection
<<Interface>>
StreamConnectionNotifier
<<Interface>>
 
Since all the additional communication protocols have been added to the Generic 
Connection Framework, the access methods and parameters are very similar. The main 
calls are to the 
Connector
 class, which provides three static methods that accept 
different compile time parameters. The commonality between the three static methods is 
the first parameter in their signatures. This particular runtime parameter accepts 
Strings
 formatted in the standard Uniform Resource Locator format. The following is 
the list of method signatures: 
Connector.open(String URL) - 
default READ_WRITE, no timeout.
  
Connector.open(String URL, int mode) -
 defaults to no timeout.
 
Connector.open(String URL, int mode, Boolean timeout) 
 
- String URL – 
parameter string describing the target conforms to the URL format 
as described in RFC 2396 for all networking protocols.
 
- int mode – 
READ/WRITE/READ_WRITE