|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.bluetooth.BluetoothConnectionAccessAdapter
com.intel.bluetooth.btspp.Connection
public class Connection
This class is Proxy for btspp (RFCOMM) Connection implementations for IBM J9 support
You need to configure -Dmicroedition.connection.pkgs=com.intel.bluetooth if not installing bluecove.jar to "%J9_HOME%\lib\jclMidp20\ext\
Your application should not use this class directly.
Constructor Summary | |
---|---|
Connection()
|
Method Summary | |
---|---|
StreamConnection |
acceptAndOpen()
|
void |
close()
|
protected BluetoothConnectionAccess |
getImpl()
|
ServiceRecord |
getServiceRecord()
|
DataInputStream |
openDataInputStream()
Open and return a data input stream for a connection. |
DataOutputStream |
openDataOutputStream()
Open and return a data output stream for a connection. |
InputStream |
openInputStream()
Open and return an input stream for a connection. |
OutputStream |
openOutputStream()
Open and return an output stream for a connection. |
void |
setParameters(String spec,
int access,
boolean timeout)
Passes the parameters from the Connector.open() method to this object. |
Connection |
setParameters2(String spec,
int access,
boolean timeout)
Passes the parameters from the Connector.open() method to this object. |
void |
updateServiceRecord(boolean acceptAndOpen)
|
Methods inherited from class com.intel.bluetooth.BluetoothConnectionAccessAdapter |
---|
encrypt, getBluetoothStack, getRemoteAddress, getRemoteDevice, getSecurityOpt, isClosed, markAuthenticated, setRemoteDevice, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Connection()
Method Detail |
---|
protected BluetoothConnectionAccess getImpl()
getImpl
in class BluetoothConnectionAccessAdapter
public void setParameters(String spec, int access, boolean timeout) throws IOException
CreateConnection
setParameters
in interface CreateConnection
spec
- String
The address passed to Connector.open()access
- int
The type of access this Connection is
granted (READ, WRITE, READ_WRITE)timeout
- boolean
A boolean indicating wether or not the
caller to Connector.open() wants timeout
exceptions or not
IOException
- If an error occured opening and configuring
serial port.Connector
public Connection setParameters2(String spec, int access, boolean timeout) throws IOException
CreateConnection
setParameters2
in interface CreateConnection
spec
- String
The address passed to Connector.open()access
- int
The type of access this Connection is
granted (READ, WRITE, READ_WRITE)timeout
- boolean
A boolean indicating wether or not the
caller to Connector.open() wants timeout
exceptions or not
IOException
- If an error occured opening and configuring
serial port.Connector
public void close() throws IOException
close
in interface Connection
IOException
public DataInputStream openDataInputStream() throws IOException
InputConnection
openDataInputStream
in interface InputConnection
IOException
- If an I/O error occurpublic InputStream openInputStream() throws IOException
InputConnection
openInputStream
in interface InputConnection
IOException
- If an I/O error occurpublic DataOutputStream openDataOutputStream() throws IOException
OutputConnection
openDataOutputStream
in interface OutputConnection
IOException
- If an I/O error occurpublic OutputStream openOutputStream() throws IOException
OutputConnection
openOutputStream
in interface OutputConnection
IOException
- If an I/O error occurpublic StreamConnection acceptAndOpen() throws IOException
acceptAndOpen
in interface StreamConnectionNotifier
IOException
public ServiceRecord getServiceRecord()
getServiceRecord
in interface BluetoothConnectionNotifierServiceRecordAccess
public void updateServiceRecord(boolean acceptAndOpen) throws ServiceRegistrationException
updateServiceRecord
in interface BluetoothConnectionNotifierServiceRecordAccess
acceptAndOpen
- wrap validation in ServiceRegistrationException
ServiceRegistrationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |