net.yura.mobile.io
Class BTService
java.lang.Object
net.yura.mobile.io.SocketClient
net.yura.mobile.io.ServiceLink
net.yura.mobile.io.BTService
- All Implemented Interfaces:
- Runnable
public class BTService
- extends ServiceLink
- Author:
- MarkH
Fields inherited from class net.yura.mobile.io.SocketClient |
COMMUNICATING, conn, CONNECTED, CONNECTING, DISCONNECTED, DISCONNECTED_AND_PAUSED, in, initialWaitValue, maxRetries, maxWaitTimeMillis, offlineBox, out, pauseReconnectOnFailure, protocol, retryWaitMultiplier, writeThread |
Methods inherited from class net.yura.mobile.io.ServiceLink |
connected, disconnected, getInstance, handleObject, isConnected, read, registerForTask, sendTask, setDetailedLogging, updateState, write |
Methods inherited from class net.yura.mobile.io.SocketClient |
addToOfflineBox, addToOutbox, disconnect, getMaxRetries, getNextServer, getOfflineBox, getRetryCount, openConnection, run, securityException, sendOfflineInboxMessages, setDisconnected, setRetryCount, wake |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bClient
protected boolean bClient
bRegistered
protected boolean bRegistered
discoveryAgent
protected javax.bluetooth.DiscoveryAgent discoveryAgent
localDevice
protected javax.bluetooth.LocalDevice localDevice
streamNotifier
protected javax.microedition.io.StreamConnectionNotifier streamNotifier
BTService
public BTService()
isRegistered
public boolean isRegistered()
isSupported
protected static boolean isSupported()
openConnection
protected javax.microedition.io.StreamConnection openConnection()
throws IOException
- Throws:
IOException
registerClient
public boolean registerClient(javax.bluetooth.UUID aUuid)
registerServer
public boolean registerServer(javax.bluetooth.UUID aUuid,
String serviceName)