public class CommPortIdentifier extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
PORT_I2C |
static int |
PORT_PARALLEL |
static int |
PORT_RAW |
static int |
PORT_RS485 |
static int |
PORT_SERIAL |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
addPortName(String s,
int type,
CommDriver c) |
void |
addPortOwnershipListener(CommPortOwnershipListener c) |
String |
getCurrentOwner() |
String |
getName() |
static CommPortIdentifier |
getPortIdentifier(CommPort p) |
static CommPortIdentifier |
getPortIdentifier(String s) |
static Enumeration |
getPortIdentifiers() |
int |
getPortType() |
boolean |
isCurrentlyOwned() |
CommPort |
open(FileDescriptor f) |
RXTXPort |
open(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(String s, int type, CommDriver c)
public void addPortOwnershipListener(CommPortOwnershipListener c)
public String getCurrentOwner()
public String getName()
public static CommPortIdentifier getPortIdentifier(String s) throws NoSuchPortException
public static CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException
public static Enumeration getPortIdentifiers()
public int getPortType()
public boolean isCurrentlyOwned()
public CommPort open(FileDescriptor f) throws UnsupportedCommOperationException
public RXTXPort open(String TheOwner, int i) throws PortInUseException
public void removePortOwnershipListener(CommPortOwnershipListener c)
Copyright © 2020. All rights reserved.