|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResourceHandle
This interface provides functionalities to acquire resources
| Method Summary | |
|---|---|
void |
close(javax.microedition.io.Connection con)
Use this method to release the connection and all acquired resources. |
javax.microedition.io.Connection |
open(String url)
This method opens a connection to the specified URL. |
IStreamConnection |
openStreamConnection(String url)
This method opens a connection to the specified URL and tries to map it into an IStreamConnection. |
| Method Detail |
|---|
javax.microedition.io.Connection open(String url)
throws IOException
close(Connection)!
Note: IConnectionFactories that are registered
with the current agent are also available through this method!
url - The location to open the connection to
IOException - if the URL is malformed or the connection could not be
opened
IStreamConnection openStreamConnection(String url)
throws IOException
IStreamConnection.
url - The location to open the connection to
IOException - if no mapping could be found or everything
open(String) throwsvoid close(javax.microedition.io.Connection con)
con - The connection to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||