|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--javax.microedition.io.Connector
This provides a basic mechanism for accessing connections
To create a connection,
user calls Connector.open(<protocol>://<params>);
| Field Summary | |
static int |
DEFAULT
Default access mode |
static int |
READ
Access mode READ. |
static int |
READ_WRITE
Access mode READ_WRITE. |
static int |
WRITE
Access mode WRITE. |
| Method Summary | |
static Connection |
open(java.lang.String url)
Create and open a connection from the URL Calls open(String url, int mode, boolean timeouts) with the url, mode READ_WRITE and timeouts 'false'. |
static Connection |
open(java.lang.String url,
int mode)
Create and open a connection from the URL Calls open(String url, int mode, boolean timeouts) with the url, mode and timeouts 'false'. |
static Connection |
open(java.lang.String url,
int mode,
boolean timeouts)
Create and open a connection from the URL |
static java.io.DataInputStream |
openDataInputStream(java.lang.String url)
Create and open a connection from the URL and then return a DataInputStream from this connection. |
static java.io.DataOutputStream |
openDataOutputStream(java.lang.String url)
Create and open a connection from the URL and then return a DataOutputStream from this connection. |
static InputStream |
openInputStream(java.lang.String url)
Create and open a connection from the URL and then return an InputStream from this connection. |
static OutputStream |
openOutputStream(java.lang.String url)
Create and open a connection from the URL and then return an OutputStream from this connection. |
static void |
reset()
Reset the prefix strings |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT
public static final int READ
public static final int WRITE
public static final int READ_WRITE
| Method Detail |
public static void reset()
public static Connection open(java.lang.String url,
int mode,
boolean timeouts)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type. mode - one of
READWRITEREAD_WRITE
timeouts - whether or not the connection uses timeouts
(the alternative is a polled connection).
ConnectionNotFoundException - if the connection cannot be found
IllegalArgumentException - if a parameter is invalid
IOException - if some kind of I/O error occurs
public static Connection open(java.lang.String url)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.
ConnectionNotFoundException - if the connection cannot be found
IllegalArgumentException - if a parameter is invalid
IOException - if some kind of I/O error occurs
public static Connection open(java.lang.String url,
int mode)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.mode - one of
READ
WRITE
READ_WRITE
ConnectionNotFoundException - if the connection cannot be found
IllegalArgumentException - if a parameter is invalid
IOException - if some kind of I/O error occurs
public static java.io.DataInputStream openDataInputStream(java.lang.String url)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.
ConnectionNotFoundException - if the connection cannot be found
IllegalArgumentException - if a parameter is invalid
IOException - if some kind of I/O error occurs
public static java.io.DataOutputStream openDataOutputStream(java.lang.String url)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.
ConnectionNotFoundException - if the connection cannot be found
IllegalArgumentException - if a parameter is invalid
IOException - if some kind of I/O error occurs
public static InputStream openInputStream(java.lang.String url)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.
ConnectionNotFoundException
IOException
public static OutputStream openOutputStream(java.lang.String url)
throws ConnectionNotFoundException,
IOException
url - A String containing the necessary information to establish
a connection of the required protocol type.
ConnectionNotFoundException
IOException
|
DCT Lightfoot v3 API specification | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||