Package gnu.io
Class CommPortIdentifier
- java.lang.Object
 - 
- gnu.io.CommPortIdentifier
 
 
- 
public class CommPortIdentifier extends java.lang.Object- Since:
 - JDK1.0
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intPORT_I2Cstatic intPORT_PARALLELstatic intPORT_RAWstatic intPORT_RS485static intPORT_SERIAL 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddPortName(java.lang.String s, int type, CommDriver c)voidaddPortOwnershipListener(CommPortOwnershipListener c)java.lang.StringgetCurrentOwner()java.lang.StringgetName()static CommPortIdentifiergetPortIdentifier(CommPort p)static CommPortIdentifiergetPortIdentifier(java.lang.String s)static java.util.EnumerationgetPortIdentifiers()intgetPortType()booleanisCurrentlyOwned()CommPortopen(java.io.FileDescriptor f)RXTXPortopen(java.lang.String TheOwner, int i)voidremovePortOwnershipListener(CommPortOwnershipListener c) 
 - 
 
- 
- 
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
 
 
- 
PORT_I2C
public static final int PORT_I2C
- See Also:
 - Constant Field Values
 
 
- 
PORT_RS485
public static final int PORT_RS485
- See Also:
 - Constant Field Values
 
 
- 
PORT_RAW
public static final int PORT_RAW
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
addPortName
public static void addPortName(java.lang.String s, int type, CommDriver c) 
- 
addPortOwnershipListener
public void addPortOwnershipListener(CommPortOwnershipListener c)
 
- 
getCurrentOwner
public java.lang.String getCurrentOwner()
 
- 
getName
public java.lang.String getName()
 
- 
getPortIdentifier
public static CommPortIdentifier getPortIdentifier(java.lang.String s) throws NoSuchPortException
- Throws:
 NoSuchPortException
 
- 
getPortIdentifier
public static CommPortIdentifier getPortIdentifier(CommPort p) throws NoSuchPortException
- Throws:
 NoSuchPortException
 
- 
getPortIdentifiers
public static java.util.Enumeration getPortIdentifiers()
 
- 
getPortType
public int getPortType()
 
- 
isCurrentlyOwned
public boolean isCurrentlyOwned()
 
- 
open
public CommPort open(java.io.FileDescriptor f) throws UnsupportedCommOperationException
 
- 
open
public RXTXPort open(java.lang.String TheOwner, int i) throws PortInUseException
- Throws:
 PortInUseException
 
- 
removePortOwnershipListener
public void removePortOwnershipListener(CommPortOwnershipListener c)
 
 - 
 
 -