|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citizen.port.android.BluetoothPort
public class BluetoothPort
Bluetooth Port. CITIZEN
Constructor Summary | |
---|---|
BluetoothPort()
|
Method Summary | |
---|---|
void |
connect(android.bluetooth.BluetoothDevice device)
Connect the interface to the destination address. |
void |
connect(java.lang.String address)
Bluetooth Address. |
void |
connectSecure(android.bluetooth.BluetoothDevice device)
|
void |
connectSecure(java.lang.String address)
|
void |
disconnect()
Disconnect the current connection. |
java.io.InputStream |
getInputStream()
Get a InputStream. |
static BluetoothPort |
getInstance()
no deprecated Get a instance of Bluetooth class. |
java.io.OutputStream |
getOutputStream()
Get a OutputStream. |
boolean |
isConnected()
Get a status that the interface were connected. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BluetoothPort()
Method Detail |
---|
public static BluetoothPort getInstance()
public void connect(java.lang.String address) throws java.io.IOException
connect
in interface PortInterface
address
-
java.io.IOException
public void connect(android.bluetooth.BluetoothDevice device) throws java.io.IOException
device
- BluetoothDevice
java.io.IOException
public void connectSecure(java.lang.String address) throws java.io.IOException
address
-
java.io.IOException
public void connectSecure(android.bluetooth.BluetoothDevice device) throws java.io.IOException
device
-
java.io.IOException
public void disconnect() throws java.io.IOException, java.lang.InterruptedException
PortInterface
disconnect
in interface PortInterface
java.io.IOException
java.lang.InterruptedException
public java.io.InputStream getInputStream() throws java.io.IOException
PortInterface
getInputStream
in interface PortInterface
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
PortInterface
getOutputStream
in interface PortInterface
java.io.IOException
public boolean isConnected()
PortInterface
isConnected
in interface PortInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |