Motorola C370, C550, C450 technical manual Class Descriptions

Models: C450 C550 C370

1 86
Download 86 pages 61.66 Kb
Page 32
Image 32

Class Descriptions

<<Interface>>

StreamConnectionNotifier

<<Interface>> Connection

<<Interface>>

DatagramConnection

<<Interface>>

InputConnection

<<Interface>>

StreamConnection

<<Interface>>

Content Co nnection

<<Inte rface>> OutputConnection

<<Interface>> HttpConnection

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

Page 32
Image 32
Motorola C370, C550, C450 technical manual Class Descriptions