|
||||||||||
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: 7:39:58 AM Copyright DocJava, Inc. 2005.
Method Summary | |
---|---|
void |
addPortOwnershipListener(CommPortOwnershipListener listener)
Adds the specified listener to the list of ownership listeners for this port. |
java.lang.String |
getCurrentOwner()
Returns the current owner of this port. |
java.lang.String |
getName()
Returns the port name, typically an OS-dependent hardware label. |
int |
getPortType()
Returns the port type, PORT_SERIAL or PORT_PARALLEL. |
boolean |
isCurrentlyOwned()
Indicates whether this port is currently owned. |
CommPortInterface |
open(java.io.FileDescriptor fd)
Opens this port using a file descriptor. |
CommPortInterface |
open(java.lang.String appName,
int timeout)
Opens this communications port. |
void |
removePortOwnershipListener(CommPortOwnershipListener listener)
Removes the specified listener from the list of ownership listeners for this port. |
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 |