com.eurotech.framework.core.bluetooth
Class BluetoothConnectorServiceImpl

java.lang.Object
  extended by com.eurotech.framework.core.bluetooth.BluetoothConnectorServiceImpl
All Implemented Interfaces:
BluetoothConnectorService, org.osgi.service.io.ConnectorService

public class BluetoothConnectorServiceImpl
extends Object
implements BluetoothConnectorService


Field Summary
 
Fields inherited from interface com.eurotech.framework.bluetooth.BluetoothConnectorService
READ, READ_WRITE, WRITE
 
Constructor Summary
BluetoothConnectorServiceImpl()
           
 
Method Summary
protected  void activate(org.osgi.service.component.ComponentContext componentContext)
           
protected  void deactivate(org.osgi.service.component.ComponentContext componentContext)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothConnectorServiceImpl

public BluetoothConnectorServiceImpl()
Method Detail

activate

protected void activate(org.osgi.service.component.ComponentContext componentContext)

deactivate

protected void deactivate(org.osgi.service.component.ComponentContext componentContext)

open

public javax.microedition.io.Connection open(String name)
                                      throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a Connection.

Specified by:
open in interface BluetoothConnectorService
Specified by:
open in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A new Connection object.
Throws:
IOException - If some other kind of I/O error occurs.

open

public javax.microedition.io.Connection open(String name,
                                             int mode)
                                      throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a Connection.

Specified by:
open in interface BluetoothConnectorService
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:
IOException - If some other kind of I/O error occurs.

open

public javax.microedition.io.Connection open(String name,
                                             int mode,
                                             boolean timeouts)
                                      throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a Connection.

Specified by:
open in interface BluetoothConnectorService
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:
IOException - If some other kind of I/O error occurs.

openDataInputStream

public DataInputStream openDataInputStream(String name)
                                    throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a connection input stream.

Specified by:
openDataInputStream in interface BluetoothConnectorService
Specified by:
openDataInputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A DataInputStream.
Throws:
IOException - If some other kind of I/O error occurs.

openDataOutputStream

public DataOutputStream openDataOutputStream(String name)
                                      throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a connection output stream.

Specified by:
openDataOutputStream in interface BluetoothConnectorService
Specified by:
openDataOutputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
A DataOutputStream.
Throws:
IOException - If some other kind of I/O error occurs.

openInputStream

public InputStream openInputStream(String name)
                            throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a connection input stream.

Specified by:
openInputStream in interface BluetoothConnectorService
Specified by:
openInputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
An InputStream
Throws:
IOException - If some other kind of I/O error occurs.

openOutputStream

public OutputStream openOutputStream(String name)
                              throws IOException
Description copied from interface: BluetoothConnectorService
Create and open a connection output stream.

Specified by:
openOutputStream in interface BluetoothConnectorService
Specified by:
openOutputStream in interface org.osgi.service.io.ConnectorService
Parameters:
name - The URL for the connection.
Returns:
An OutputStream
Throws:
IOException - If some other kind of I/O error occurs.


Copyright © 2013. All Rights Reserved.