public class CommPortIdentifier
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static int |
PORT_I2C |
|
static int |
PORT_PARALLEL |
|
static int |
PORT_RAW |
|
static int |
PORT_RS485 |
|
static int |
PORT_SERIAL |
Modifier and Type | Method | Description |
---|---|---|
static void |
addPortName(java.lang.String s,
int type,
CommDriver c) |
|
void |
addPortOwnershipListener(CommPortOwnershipListener c) |
|
java.lang.String |
getCurrentOwner() |
|
java.lang.String |
getName() |
|
static CommPortIdentifier |
getPortIdentifier(CommPort p) |
|
static CommPortIdentifier |
getPortIdentifier(java.lang.String s) |
|
static java.util.Enumeration |
getPortIdentifiers() |
|
int |
getPortType() |
|
boolean |
isCurrentlyOwned() |
|
CommPort |
open(java.io.FileDescriptor f) |
|
CommPort |
open(java.lang.String TheOwner,
int i) |
|
void |
removePortOwnershipListener(CommPortOwnershipListener c) |
public static final int PORT_SERIAL
public static final int PORT_PARALLEL
public static final int PORT_I2C
public static final int PORT_RS485
public static final int PORT_RAW
public static void addPortName(java.lang.String s, int type, CommDriver c)
public void addPortOwnershipListener(CommPortOwnershipListener c)
public java.lang.String getCurrentOwner()
public java.lang.String getName()
public static CommPortIdentifier getPortIdentifier(java.lang.String s) throws NoSuchPortException
NoSuchPortException
public static CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException
NoSuchPortException
public static java.util.Enumeration getPortIdentifiers()
public int getPortType()
public boolean isCurrentlyOwned()
public CommPort open(java.io.FileDescriptor f) throws UnsupportedCommOperationException
public CommPort open(java.lang.String TheOwner, int i) throws PortInUseException
PortInUseException
public void removePortOwnershipListener(CommPortOwnershipListener c)