|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sewoo.port.android.BluetoothPort
public class BluetoothPort
Bluetooth Interface.
Method Summary | |
---|---|
void |
connect(android.bluetooth.BluetoothDevice device)
Connect the interface to the destination address. |
void |
connect(java.lang.String address)
Connect the interface to the destination address. |
void |
disconnect()
Disconnect the current connection. |
java.io.InputStream |
getInputStream()
Get a InputStream. |
static BluetoothPort |
getInstance()
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 |
Method Detail |
---|
public static BluetoothPort getInstance()
public void connect(java.lang.String address) throws java.io.IOException
PortInterface
connect
in interface PortInterface
java.io.IOException
public void disconnect() throws java.io.IOException
PortInterface
disconnect
in interface PortInterface
java.io.IOException
public void connect(android.bluetooth.BluetoothDevice device) throws java.io.IOException
device
- BluetoothDevice
java.io.IOException
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 |