javax.comm
Class CommPortIdentifier

java.lang.Object
  extended byjavax.comm.CommPortIdentifier

public class CommPortIdentifier
extends Object


Field Summary
static int PORT_PARALLEL
           
static int PORT_SERIAL
           
 
Method Summary
static void addPortName(String s, int i, javax.comm.CommDriver commdriver)
           
 void addPortOwnershipListener(javax.comm.CommPortOwnershipListener commportownershiplistener)
           
 String getCurrentOwner()
           
 String getName()
           
static CommPortIdentifier getPortIdentifier(javax.comm.CommPort commport)
           
static CommPortIdentifier getPortIdentifier(String s)
           
static Enumeration getPortIdentifiers()
           
 int getPortType()
           
 boolean isCurrentlyOwned()
           
 javax.comm.CommPort open(FileDescriptor filedescriptor)
           
 javax.comm.CommPort open(String s, int i)
           
 void removePortOwnershipListener(javax.comm.CommPortOwnershipListener commportownershiplistener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Method Detail

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