ist.palcom.mal
Class BluetoothCommunicationThread
java.lang.Object
ist.palcom.palcomthreads.PalcomThread
ist.palcom.palcomthreads.PalcomPriorityThread
ist.palcom.mal.CommunicationThread
ist.palcom.mal.BluetoothCommunicationThread
public class BluetoothCommunicationThread
- extends CommunicationThread
This class implements ist.palcom.mal.BluetoothCommunicationThread
BluetoothCommunicationThread is a CommunicationThread for Bluetooth communication. It
sends an receives on one Bluetooth socket and is thus the rfcomm connection to a specific
host
- See Also:
CommunicationThread
|
Method Summary |
URL |
getURL()
|
void |
run()
This method is overridden by subclasses. |
protected void |
setUp()
Perform socket set-up if needed. |
protected void |
tearDown()
Close socket if needed. |
URL_PREFIX
protected static final String URL_PREFIX
- See Also:
- Constant Field Values
socket
protected BluetoothSocket socket
BluetoothCommunicationThread
protected BluetoothCommunicationThread(PalcomScheduler scheduler,
PalcomThread distributor,
String URL)
throws IOException
- Throws:
IOException
BluetoothCommunicationThread
protected BluetoothCommunicationThread(PalcomScheduler scheduler,
PalcomThread distributor,
BluetoothSocket socket)
setUp
protected void setUp()
- Perform socket set-up if needed.
tearDown
protected void tearDown()
- Close socket if needed.
run
public void run()
- Description copied from class:
PalcomThread
- This method is overridden by subclasses.
- Overrides:
run in class PalcomThread
getURL
public URL getURL()
- Specified by:
getURL in class CommunicationThread
- Returns:
- The URL for sending messages to this thread, a URL this thread
listens at (protocol-specific URL).