javax.comm
Class CommPortIdentifier
java.lang.Object
javax.comm.CommPortIdentifier
- public class CommPortIdentifier
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PORT_SERIAL
public static final int PORT_SERIAL
- See Also:
- Constant Field Values
PORT_PARALLEL
public static final int PORT_PARALLEL
- See Also:
- Constant Field Values
getPortIdentifiers
public static Enumeration getPortIdentifiers()
getPortIdentifier
public static CommPortIdentifier getPortIdentifier(String s)
throws javax.comm.NoSuchPortException
- Throws:
javax.comm.NoSuchPortException
getPortIdentifier
public static CommPortIdentifier getPortIdentifier(javax.comm.CommPort commport)
throws javax.comm.NoSuchPortException
- Throws:
javax.comm.NoSuchPortException
addPortName
public static void addPortName(String s,
int i,
javax.comm.CommDriver commdriver)
getName
public String getName()
getPortType
public int getPortType()
open
public javax.comm.CommPort open(String s,
int i)
throws javax.comm.PortInUseException
- Throws:
javax.comm.PortInUseException
getCurrentOwner
public String getCurrentOwner()
isCurrentlyOwned
public boolean isCurrentlyOwned()
addPortOwnershipListener
public void addPortOwnershipListener(javax.comm.CommPortOwnershipListener commportownershiplistener)
removePortOwnershipListener
public void removePortOwnershipListener(javax.comm.CommPortOwnershipListener commportownershiplistener)
open
public javax.comm.CommPort open(FileDescriptor filedescriptor)
throws javax.comm.UnsupportedCommOperationException
- Throws:
javax.comm.UnsupportedCommOperationException