|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--nl.tbdev.IR.Device
The Device class contains information about discovered devices.
| Field Summary | |
private int |
address
|
static byte |
COMM
device supports IrCOMM |
static byte |
COMPUTER
device is a computer |
static byte |
EXT1
flag additional byte with information |
static byte |
EXT2
flag yet another byte of information |
static byte |
FAX
device is a FAX |
private byte[] |
info
|
static byte |
LAN
device has LAN capabilities |
static byte |
MODEM
device is a modem |
static byte |
OBEX
device supports IrOBEX |
static byte |
PDA
device is a PDA |
static byte |
PnP
device is Plug-and-Play compatible |
static byte |
PRINTER
device is a printer |
static byte |
SERVER
device is a server |
static byte |
TELEPHONE
device supports telephone API |
| Constructor Summary | |
Device(int iAddress,
byte[] iInfo)
Create new device. |
|
| Method Summary | |
int |
getAddress()
Get address for this device |
java.lang.String |
getAddressHex()
Get address for this device |
byte[] |
getInfo()
Return the additional information |
java.lang.String |
getInfoString()
Get the additional information in string form. |
java.lang.String |
getInfoStringPlus()
Return the additional information in string form with the option bytes in HEX format as well. |
boolean |
isComm()
Does this device support IrCOMM? |
boolean |
isComputer()
is this a computer? |
boolean |
isExt1()
is there a second byte of information available? |
boolean |
isExt2()
is there more information available? |
boolean |
isFax()
is this a FAX? |
boolean |
isLan()
is this device LAN compatible? |
boolean |
isModem()
is this a modem? |
boolean |
isObex()
Does this device support IrOBEX? |
boolean |
isPda()
is this a PDA? |
boolean |
isPnp()
is this a Plug-and-Play device? |
boolean |
isPrinter()
is this a printer? |
boolean |
isServer()
is this a server? |
boolean |
isTelephone()
is this a telephony compatibale devices? |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private byte[] info
private int address
public static final byte PnP
public static final byte PDA
public static final byte COMPUTER
public static final byte PRINTER
public static final byte MODEM
public static final byte FAX
public static final byte LAN
public static final byte EXT1
public static final byte TELEPHONE
public static final byte SERVER
public static final byte COMM
public static final byte OBEX
public static final byte EXT2
| Constructor Detail |
public Device(int iAddress,
byte[] iInfo)
iAddress - Address of the deviceiInfo - Array with additional information on the device| Method Detail |
public int getAddress()
public java.lang.String getAddressHex()
public byte[] getInfo()
public boolean isPnp()
public boolean isPda()
public boolean isComputer()
public boolean isPrinter()
public boolean isModem()
public boolean isFax()
public boolean isLan()
public boolean isExt1()
public boolean isExt2()
public boolean isTelephone()
public boolean isServer()
public boolean isComm()
public boolean isObex()
public java.lang.String getInfoString()
public java.lang.String getInfoStringPlus()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||