public interface BluetoothConnectorService
extends org.osgi.service.io.ConnectorService
| Modifier and Type | Field and Description |
|---|---|
static int |
READ
Access mode READ
|
static int |
READ_WRITE
Access mode READ_WRITE
|
static int |
WRITE
Access mode WRITE
|
| Modifier and Type | Method and Description |
|---|---|
javax.microedition.io.Connection |
open(String name)
Create and open a Connection.
|
javax.microedition.io.Connection |
open(String name,
int mode)
Create and open a Connection.
|
javax.microedition.io.Connection |
open(String name,
int mode,
boolean timeouts)
Create and open a Connection.
|
DataInputStream |
openDataInputStream(String name)
Create and open a connection input stream.
|
DataOutputStream |
openDataOutputStream(String name)
Create and open a connection output stream.
|
InputStream |
openInputStream(String name)
Create and open a connection input stream.
|
OutputStream |
openOutputStream(String name)
Create and open a connection output stream.
|
static final int READ
static final int WRITE
static final int READ_WRITE
javax.microedition.io.Connection open(String name) throws IOException
open in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the requested connection cannot be made,
or the protocol type does not exist.IOException - If some other kind of I/O error occurs.SecurityException - If a requested protocol handler is not permitted.javax.microedition.io.Connection open(String name, int mode) throws IOException
open in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.mode - The access mode.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the requested connection cannot be made,
or the protocol type does not exist.IOException - If some other kind of I/O error occurs.SecurityException - If a requested protocol handler is not permitted.javax.microedition.io.Connection open(String name, int mode, boolean timeouts) throws IOException
open in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.mode - The access mode.timeouts - A flag to indicate that the caller wants timeout exceptionsIllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the requested connection cannot be made,
or the protocol type does not exist.IOException - If some other kind of I/O error occurs.SecurityException - If a requested protocol handler is not permitted.DataInputStream openDataInputStream(String name) throws IOException
openDataInputStream in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the connection cannot be found.IOException - If some other kind of I/O error occurs.SecurityException - If access to the requested stream is not permitted.DataOutputStream openDataOutputStream(String name) throws IOException
openDataOutputStream in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the connection cannot be found.IOException - If some other kind of I/O error occurs.SecurityException - If access to the requested stream is not permitted.InputStream openInputStream(String name) throws IOException
openInputStream in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the connection cannot be found.IOException - If some other kind of I/O error occurs.SecurityException - If access to the requested stream is not permitted.OutputStream openOutputStream(String name) throws IOException
openOutputStream in interface org.osgi.service.io.ConnectorServicename - The URL for the connection.IllegalArgumentException - If a parameter is invalid.ConnectionNotFoundException - If the connection cannot be found.IOException - If some other kind of I/O error occurs.SecurityException - If access to the requested stream is not permitted.Copyright © 2013. All Rights Reserved.