| |
|
| java.lang.Object com.sun.midp.jsr082.bluetooth.BluetoothStack com.sun.midp.jsr082.bluetooth.GenericBluetoothStack
GenericBluetoothStack | public class GenericBluetoothStack extends BluetoothStack (Code) | | BluetoothStack implementation which relies on HCI command/event flow.
|
extractAddress | protected String extractAddress(int offset)(Code) | | Extracts Bluetooth address from the internal buffer.
Parameters: offset - offset in the internal buffer Bluetooth address consisting of 12 hexadecimal characters |
extractShort | protected int extractShort(int offset)(Code) | | Extracts 2 octets from the internal buffer.
Parameters: offset - offset in the internal buffer 16 bits of data from the given offset |
extractString | protected String extractString(int offset)(Code) | | Extracts string (e.g. friendly name) from the internal buffer. The
string is stored in UTF-8 format and is terminated by NULL character.
Parameters: offset - offset in the internal buffer Java string retrieved from binary event data |
retrieveEvent | protected BluetoothEvent retrieveEvent()(Code) | | Retrieves Bluetooth event from HCI event data containing in the
internal buffer.
BluetoothEvent subclass instance |
|
|
|