com.eurotech.framework.bluetooth
Interface BluetoothConnectorService

All Superinterfaces:
org.osgi.service.io.ConnectorService
All Known Implementing Classes:
BluetoothConnectorServiceImpl

public interface BluetoothConnectorService
extends org.osgi.service.io.ConnectorService


Field Summary
static int READ
          Access mode READ
static int READ_WRITE
          Access mode READ_WRITE
static int WRITE
          Access mode WRITE
 
Method Summary
 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.
 

Field Detail

READ

static final int READ
Access mode READ

See Also:
Constant Field Values

WRITE

static final int WRITE
Access mode WRITE

See Also:
Constant Field Values

READ_WRITE

static final int READ_WRITE
Access mode READ_WRITE

See Also:
Constant Field Values
Method Detail

open

javax.microedition.io.Connection open(String name)
                                      throws IOException
Create and open a Connection.

Specified by:
open in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A new Connection object.
Throws:
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.

open

javax.microedition.io.Connection open(String name,
                                      int mode)
                                      throws IOException
Create and open a Connection.

Specified by:
open in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
mode - The access mode.
Returns:
A new Connection object.
Throws:
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.

open

javax.microedition.io.Connection open(String name,
                                      int mode,
                                      boolean timeouts)
                                      throws IOException
Create and open a Connection.

Specified by:
open in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
mode - The access mode.
timeouts - A flag to indicate that the caller wants timeout exceptions
Returns:
A new Connection object.
Throws:
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.

openDataInputStream

DataInputStream openDataInputStream(String name)
                                    throws IOException
Create and open a connection input stream.

Specified by:
openDataInputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A DataInputStream.
Throws:
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.

openDataOutputStream

DataOutputStream openDataOutputStream(String name)
                                      throws IOException
Create and open a connection output stream.

Specified by:
openDataOutputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A DataOutputStream.
Throws:
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.

openInputStream

InputStream openInputStream(String name)
                            throws IOException
Create and open a connection input stream.

Specified by:
openInputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
An InputStream
Throws:
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.

openOutputStream

OutputStream openOutputStream(String name)
                              throws IOException
Create and open a connection output stream.

Specified by:
openOutputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
An OutputStream
Throws:
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.