@Implements(value=android.bluetooth.BluetoothSocket.class) public class ShadowBluetoothSocket extends Object
Constructor and Description |
---|
ShadowBluetoothSocket() |
Modifier and Type | Method and Description |
---|---|
protected void |
close() |
protected void |
connect()
This method doesn’t perform an actual connection and returns immediately
|
protected InputStream |
getInputStream() |
PipedOutputStream |
getInputStreamFeeder()
Returns
PipedOutputStream that controls input stream of the BluetoothSocket . |
protected OutputStream |
getOutputStream() |
PipedInputStream |
getOutputStreamSink()
Returns
PipedInputStream that controls output stream of the BluetoothSocket . |
protected boolean |
isConnected() |
public PipedOutputStream getInputStreamFeeder()
Returns PipedOutputStream
that controls input stream of the BluetoothSocket
.
public PipedInputStream getOutputStreamSink()
Returns PipedInputStream
that controls output stream of the BluetoothSocket
.
@Implementation protected InputStream getInputStream()
@Implementation protected OutputStream getOutputStream()
@Implementation protected boolean isConnected()
@Implementation protected void connect() throws IOException
This method doesn’t perform an actual connection and returns immediately
IOException
@Implementation protected void close() throws IOException
IOException