com.appliancestudio.jbluez
Class HCIFeatures
java.lang.Object
|
+--com.appliancestudio.jbluez.HCIFeatures
- public class HCIFeatures
- extends java.lang.Object
Representation of the features supported by an HCI device.
This is just an array of 8 shorts, which represent the different features. The mapping between the numeric representation and their meaning is not yet implemented, but can be found in the Bluetooth Specification or in the lmp_features_map
array and associated functions, found in the hci.c
file (part of the BlueZ libraries).
- Version:
- 1.0
- Author:
- Edward Kay, ed.kay@appliancestudio.com
Constructor Summary |
HCIFeatures()
Default constructor. |
HCIFeatures(short _features0,
short _features1,
short _features2,
short _features3,
short _features4,
short _features5,
short _features6,
short _features7)
Constructor which sets all the fields in the class. |
Method Summary |
java.lang.String |
toString()
Convert all the data in the array to a String object for printing. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
features0
public short features0
features1
public short features1
features2
public short features2
features3
public short features3
features4
public short features4
features5
public short features5
features6
public short features6
features7
public short features7
HCIFeatures
public HCIFeatures()
- Default constructor.
HCIFeatures
public HCIFeatures(short _features0,
short _features1,
short _features2,
short _features3,
short _features4,
short _features5,
short _features6,
short _features7)
- Constructor which sets all the fields in the class. This is provided since when creating a new HCIFeatures object in the native code (namely C), it is much more efficient since we do not have to ask the JVM for pointers to each individual field.
Each element of the features field is set separately since there is no ability to create arrays of Java types in the native code (?). In any case, if an array was created in the native code and passed back, the only benefit would be slightly more concise code. It would have no effect on performance.
- Parameters:
_features0
- _features1
- _features2
- _features3
- _features4
- _features5
- _features6
- _features7
-
toString
public java.lang.String toString()
- Convert all the data in the array to a String object for printing.
- Overrides:
toString
in class java.lang.Object
- Returns:
- A String representing the data held in this object.
Copyright © 2002 The Appliance Studio Limited