gnu.io

Class CommPortIdentifier


public class CommPortIdentifier
extends Object

Since:
JDK1.0

Field Summary

static int
PORT_I2C
static int
PORT_PARALLEL
static int
PORT_RAW
static int
PORT_RS485
static int
PORT_SERIAL

Method Summary

static void
addPortName(String s, int type, CommDriver c)
void
addPortOwnershipListener(CommPortOwnershipListener c)
String
getCurrentOwner()
String
getName()
static CommPortIdentifier
getPortIdentifier(CommPort p)
static CommPortIdentifier
getPortIdentifier(String s)
static Enumeration
getPortIdentifiers()
int
getPortType()
boolean
isCurrentlyOwned()
CommPort
open(FileDescriptor f)
CommPort
open(String TheOwner, int i)
void
removePortOwnershipListener(CommPortOwnershipListener c)

Field Details

PORT_I2C

public static final int PORT_I2C
Field Value:
3

PORT_PARALLEL

public static final int PORT_PARALLEL
Field Value:
2

PORT_RAW

public static final int PORT_RAW
Field Value:
5

PORT_RS485

public static final int PORT_RS485
Field Value:
4

PORT_SERIAL

public static final int PORT_SERIAL
Field Value:
1

Method Details

addPortName

public static void addPortName(String s,
                               int type,
                               CommDriver c)

addPortOwnershipListener

public void addPortOwnershipListener(CommPortOwnershipListener c)

getCurrentOwner

public String getCurrentOwner()

getName

public String getName()

getPortIdentifier

public static CommPortIdentifier getPortIdentifier(CommPort p)
            throws NoSuchPortException

getPortIdentifier

public static CommPortIdentifier getPortIdentifier(String s)
            throws NoSuchPortException

getPortIdentifiers

public static Enumeration getPortIdentifiers()

getPortType

public int getPortType()

isCurrentlyOwned

public boolean isCurrentlyOwned()

open

public CommPort open(FileDescriptor f)
            throws UnsupportedCommOperationException

open

public CommPort open(String TheOwner,
                     int i)
            throws PortInUseException

removePortOwnershipListener

public void removePortOwnershipListener(CommPortOwnershipListener c)