The J2ME Connection Framework
and Related Topics |
Prof. David Bernstein |
Computer Science Department |
bernstdh@jmu.edu |
Add Capabilities to an Object Dynamically
javax.microedition.io
L2CAPConnection
(JSR82)
UDPDatagramConnection
(MIDP2.0)
FileConnection
(JSR75)
HttpConnection
(MIDP1.0)
HttpsConnection
(MIDP2.0)
MessageConnection
(JSR120)
SocketConnection
(MIDP2.0)
ServerSocketConnection
(MIDP2.0)
SocketConnection c = (SocketConnection)Connector.Open("socket://cs.jmu.edu:8120");
UDPDatagramConnection c = (IDPDatagramConnection)Connector.Open("datagram://cs.jmu.edu:8120");
HttpConnection c = (HttpConnection)Connector.Open("http://www.jmu.edu");
FileConnection c = (FileConnection)Connector.Open("file://test.txt");