Package gnu.io
Class CommPortIdentifier
java.lang.Object
gnu.io.CommPortIdentifier
- Since:
- JDK1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addPortName
(String s, int type, CommDriver c) void
getName()
static CommPortIdentifier
static CommPortIdentifier
static Enumeration
int
boolean
void
-
Field Details
-
PORT_SERIAL
public static final int PORT_SERIAL- See Also:
-
PORT_PARALLEL
public static final int PORT_PARALLEL- See Also:
-
PORT_I2C
public static final int PORT_I2C- See Also:
-
PORT_RS485
public static final int PORT_RS485- See Also:
-
PORT_RAW
public static final int PORT_RAW- See Also:
-
-
Method Details
-
addPortName
-
addPortOwnershipListener
-
getCurrentOwner
-
getName
-
getPortIdentifier
- Throws:
NoSuchPortException
-
getPortIdentifier
- Throws:
NoSuchPortException
-
getPortIdentifiers
-
getPortType
public int getPortType() -
isCurrentlyOwned
public boolean isCurrentlyOwned() -
open
-
open
- Throws:
PortInUseException
-
removePortOwnershipListener
-