|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.avetana.bluetooth.connection.Connector
This class only supports the RFCOMM Protocol for the moment. It will be soon extended in order to support RFCOMM and maybe OBEX. Remote (btspp://010203040506:1;master=false) or local (btspp://localhost:3B9FA89520078C303355AAA694238F07:1;name=Avetana Service;) URLs are supported. The class JSR82URL verifies that the URL is a correct Bluetooth connection URL, which matches the RFC 1808 specification. (see http://www.w3.org/Addressing/rfc1808.txt for more information).
| Field Summary | |
static int |
READ
|
static int |
READ_WRITE
|
static int |
WRITE
|
| Constructor Summary | |
Connector()
|
|
| Method Summary | |
static Connection |
open(java.lang.String url)
|
static Connection |
open(java.lang.String url,
int mode)
Create and open a Connection. |
static Connection |
open(java.lang.String url,
int mode,
boolean timeouts)
Create and open a Connection |
static java.io.DataInputStream |
openDataInputStream(java.lang.String url)
Create and open a connection dataInputStream. |
static java.io.DataOutputStream |
openDataOutputStream(java.lang.String url)
Create and open a connection dataOutput stream. |
static java.io.InputStream |
openInputStream(java.lang.String url)
Create and open a connection input stream. |
static java.io.OutputStream |
openOutputStream(java.lang.String url)
Create and open a connection output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int READ
public static final int WRITE
public static final int READ_WRITE
| Constructor Detail |
public Connector()
| Method Detail |
public static Connection open(java.lang.String url)
throws java.io.IOException
java.io.IOException
public static Connection open(java.lang.String url,
int mode)
throws java.io.IOException
url - The URL for the connection.mode - The access mode
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
This call is equivilant to Connection.open(url).
public static Connection open(java.lang.String url,
int mode,
boolean timeouts)
throws java.io.IOException
url - The URL for the connection.mode - The access modetimeouts - A flag to indicate that the called wants timeout exceptions
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
This call is equivilant to Connection.open(url).
public static java.io.DataInputStream openDataInputStream(java.lang.String url)
throws java.lang.Exception
url - The URL for the connection.
java.io.IOException
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
java.lang.Exception
public static java.io.DataOutputStream openDataOutputStream(java.lang.String url)
throws java.lang.Exception
url - The URL for the connection.
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
java.lang.Exception
public static java.io.InputStream openInputStream(java.lang.String url)
throws java.lang.Exception
url - The URL for the connection.
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
java.lang.Exception
public static java.io.OutputStream openOutputStream(java.lang.String url)
throws java.lang.Exception
url - The URL for the connection.
java.lang.IllegalArgumentException - If a parameter is invalid.
ConnectionNotFoundException - If the connection cannot be found.
java.io.IOException - If some other kind of I/O error occurs.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||