Back to project page LibGeppa.
The source code is released under:
Apache License
If you think the Android project LibGeppa listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package net.cattaka.libgeppa.bluetooth; //from w w w. jav a 2s .com import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.bluetooth.BluetoothSocket; public class BluetoothSocketWrapper implements IBluetoothSocket { private BluetoothSocket mSocket; public BluetoothSocketWrapper(BluetoothSocket socket) { super(); mSocket = socket; } public void close() throws IOException { mSocket.close(); } public void connect() throws IOException { mSocket.connect(); } public InputStream getInputStream() throws IOException { return mSocket.getInputStream(); } public OutputStream getOutputStream() throws IOException { return mSocket.getOutputStream(); } }