@Implements(android.bluetooth.BluetoothSocket.class) public class ShadowBluetoothSocket extends Object
Constructor | Description |
---|---|
ShadowBluetoothSocket() |
Modifier and Type | Method | 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() |
|
void |
setOutputStream(PipedOutputStream outputStream) |
Set the output stream.
|
public void setOutputStream(PipedOutputStream outputStream)
write()
operations on this stream can be observed to verify
expected behavior.public PipedOutputStream getInputStreamFeeder()
PipedOutputStream
that controls input stream of the BluetoothSocket
.public PipedInputStream getOutputStreamSink()
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
IOException
@Implementation protected void close() throws IOException
IOException