Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
One stop BTManager API entry point. More...
Classes | |
class | ImplementationIdentifier |
Identifier names, allowing BTFactory#getBTManager(ImplementationIdentifier) to initialize the required native libraries and to instantiate the root BTManager instance. More... | |
Static Public Member Functions | |
static final String | getAPIVersion () |
Manifest's Attributes.Name#SPECIFICATION_VERSION or. More... | |
static final String | getImplVersion () |
Manifest's Attributes.Name#IMPLEMENTATION_VERSION or. More... | |
static synchronized void | checkInitialized () |
static synchronized boolean | isInitialized () |
static synchronized boolean | registerImplementationIdentifier (final ImplementationIdentifier id) |
Registers a new ImplementationIdentifier to the internal list. More... | |
static synchronized ImplementationIdentifier | getImplementationIdentifier (final String fqBluetoothManagerImplementationClassName) |
Returns the matching ImplementationIdentifier from the internal list or. More... | |
static synchronized BTManager | getBTManager (final String fqBluetoothManagerImplementationClassName) throws BTException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException |
Returns an initialized BluetoothManager instance using the given. More... | |
static synchronized BTManager | getBTManager (final ImplementationIdentifier id) throws BTException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException |
Returns an initialized BluetoothManager instance using the given ImplementationIdentifier. More... | |
static synchronized BTManager | getDirectBTManager () throws BTException, NoSuchMethodException, SecurityException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, ClassNotFoundException |
Returns an initialized BluetoothManager instance using the DirectBT implementation. More... | |
static void | main (final String args[]) |
static native String | getNativeVersion () |
static native String | getNativeAPIVersion () |
Static Public Attributes | |
static final ImplementationIdentifier | DirectBTImplementationID = new ImplementationIdentifier("jau.direct_bt.DBTManager", "direct_bt", "javadirect_bt") |
ImplementationIdentifier for direct_bt implementation: {@value} More... | |
static final boolean | VERBOSE |
Verbose logging enabled or disabled. More... | |
static final boolean | DEBUG |
Debug logging enabled or disabled. More... | |
static final BTMode | DEFAULT_BTMODE |
Default BTMode when initializing new adapter. More... | |
static final boolean | JAULIB_AVAILABLE |
True if jaulib org.jau.sys.PlatformProps has been detected. More... | |
static final boolean | JAULIB_JARCACHE_USED |
True if jaulib JAULIB_AVAILABLE and its org.jau.sys.PlatformProps#USE_TEMP_JAR_CACHE is true, i.e. More... | |
One stop BTManager API entry point.
Further provides access to certain property settings, see DEBUG, VERBOSE, DEFAULT_BTMODE and BTManager.Settings.
Definition at line 52 of file BTFactory.java.
|
static |
Definition at line 215 of file BTFactory.java.
|
static |
Manifest's Attributes.Name#SPECIFICATION_VERSION or.
if not available.
Definition at line 124 of file BTFactory.java.
|
static |
Returns an initialized BluetoothManager instance using the given ImplementationIdentifier.
If the ImplementationIdentifier has not been registerImplementationIdentifier(ImplementationIdentifier), it will be added to the list.
The chosen implementation can't be changed within a running implementation, an exception is thrown if tried.
id | the specific ImplementationIdentifier |
BTException | |
NoSuchMethodException | |
SecurityException | |
IllegalAccessException | |
IllegalArgumentException | |
InvocationTargetException | |
ClassNotFoundException |
Definition at line 454 of file BTFactory.java.
|
static |
Returns an initialized BluetoothManager instance using the given.
to lookup a registered ImplementationIdentifier.
If found, method returns getBTManager(ImplementationIdentifier), otherwise
.
The chosen implementation can't be changed within a running implementation, an exception is thrown if tried.
fqBluetoothManagerImplementationClassName | fully qualified class name for the BTManager implementation |
BTException | |
NoSuchMethodException | |
SecurityException | |
IllegalAccessException | |
IllegalArgumentException | |
InvocationTargetException | |
ClassNotFoundException |
Definition at line 423 of file BTFactory.java.
|
static |
Returns an initialized BluetoothManager instance using the DirectBT implementation.
Issues getBTManager(ImplementationIdentifier) using DirectBTImplementationID.
The chosen implementation can't be changed within a running implementation, an exception is thrown if tried.
BTException | |
NoSuchMethodException | |
SecurityException | |
IllegalAccessException | |
IllegalArgumentException | |
InvocationTargetException | |
ClassNotFoundException |
Definition at line 480 of file BTFactory.java.
|
static |
Returns the matching ImplementationIdentifier from the internal list or.
if not found.
fqBluetoothManagerImplementationClassName | fully qualified class name for the BTManager implementation |
Definition at line 393 of file BTFactory.java.
|
static |
Manifest's Attributes.Name#IMPLEMENTATION_VERSION or.
if not available.
Definition at line 130 of file BTFactory.java.
|
static |
|
static |
|
static |
Definition at line 220 of file BTFactory.java.
|
static |
Definition at line 530 of file BTFactory.java.
|
static |
Registers a new ImplementationIdentifier to the internal list.
The
is only added if not registered yet.
id | the ImplementationIdentifier to register |
Definition at line 379 of file BTFactory.java.
|
static |
Debug logging enabled or disabled.
System property
, boolean, default
.
Definition at line 147 of file BTFactory.java.
|
static |
Default BTMode when initializing new adapter.
System property
, string, default
Definition at line 156 of file BTFactory.java.
|
static |
ImplementationIdentifier for direct_bt implementation: {@value}
This value is exposed for convenience, user implementations are welcome.
Definition at line 117 of file BTFactory.java.
|
static |
True if jaulib org.jau.sys.PlatformProps has been detected.
Definition at line 161 of file BTFactory.java.
|
static |
True if jaulib JAULIB_AVAILABLE and its org.jau.sys.PlatformProps#USE_TEMP_JAR_CACHE is true, i.e.
the jar cache is available, enabled and in use.
Definition at line 167 of file BTFactory.java.
|
static |
Verbose logging enabled or disabled.
System property
, boolean, default
.
Definition at line 139 of file BTFactory.java.