net.yura.mobile.io
Class BTService

java.lang.Object
  extended by net.yura.mobile.io.SocketClient
      extended by net.yura.mobile.io.ServiceLink
          extended by net.yura.mobile.io.BTService
All Implemented Interfaces:
Runnable

public class BTService
extends ServiceLink

Author:
MarkH

Nested Class Summary
 
Nested classes/interfaces inherited from class net.yura.mobile.io.ServiceLink
ServiceLink.ServiceAccess, ServiceLink.Task, ServiceLink.TaskHandler
 
Field Summary
protected  boolean bClient
           
protected  boolean bRegistered
           
protected  javax.bluetooth.DiscoveryAgent discoveryAgent
           
protected  javax.bluetooth.LocalDevice localDevice
           
protected  javax.microedition.io.StreamConnectionNotifier streamNotifier
           
 
Fields inherited from class net.yura.mobile.io.ServiceLink
earliestSupportedMajorVersion, earliestSupportedMinorVersion, majorVersion, minorVersion, register
 
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
 
Constructor Summary
BTService()
           
 
Method Summary
 boolean isRegistered()
           
protected static boolean isSupported()
           
protected  javax.microedition.io.StreamConnection openConnection()
           
 boolean registerClient(javax.bluetooth.UUID aUuid)
           
 boolean registerServer(javax.bluetooth.UUID aUuid, String serviceName)
           
 
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
 

Field Detail

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
Constructor Detail

BTService

public BTService()
Method Detail

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)