|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommPortIdentifierInterface
User: lyon Date: Jul 30, 2006 Time: 5:40:20 AM Copyright DocJava, Inc. 2005.
Field Summary | |
---|---|
static int |
PORT_I2C
|
static int |
PORT_PARALLEL
IEEE 1284 parallel port. |
static int |
PORT_RAW
|
static int |
PORT_RS485
|
static int |
PORT_SERIAL
RS-232 serial port. |
Method Summary | |
---|---|
void |
addPortOwnershipListener(CommPortOwnershipListener listener)
Adds the specified listener to the list of ownership listeners for this port. |
java.lang.String |
getCurrentOwner()
|
java.lang.String |
getName()
|
int |
getPortType()
|
boolean |
isCurrentlyOwned()
|
CommPortInterface |
open(java.io.FileDescriptor fd)
|
CommPortInterface |
open(java.lang.String appName,
int timeout)
|
void |
removePortOwnershipListener(CommPortOwnershipListener listener)
Removes the specified listener from the list of ownership listeners for this port. |
Field Detail |
---|
static final int PORT_I2C
static final int PORT_RS485
static final int PORT_RAW
static final int PORT_SERIAL
static final int PORT_PARALLEL
Method Detail |
---|
java.lang.String getName()
int getPortType()
java.lang.String getCurrentOwner()
boolean isCurrentlyOwned()
CommPortInterface open(java.lang.String appName, int timeout) throws PortInUseException
appName
- the name of the application requesting the porttimeout
- number of miliseconds to wait for the port to open
PortInUseException
CommPortInterface open(java.io.FileDescriptor fd) throws UnsupportedCommOperationException
fd
- the file descriptor
UnsupportedCommOperationException
- if the platform does not
support this functionalityvoid addPortOwnershipListener(CommPortOwnershipListener listener)
listener
- the ownership listener to addvoid removePortOwnershipListener(CommPortOwnershipListener listener)
listener
- the ownership listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |