public class CommPortIdentifier extends Object
Modifier and Type | Field and 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 and Description |
---|---|
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) |
CommPort |
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
NoSuchPortException
public static CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException
NoSuchPortException
public static Enumeration getPortIdentifiers()
public int getPortType()
public boolean isCurrentlyOwned()
public CommPort open(FileDescriptor f) throws UnsupportedCommOperationException
public CommPort open(String TheOwner, int i) throws PortInUseException
PortInUseException
public void removePortOwnershipListener(CommPortOwnershipListener c)
Copyright © 2016. All rights reserved.