All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.util.EventObject | +----javax.comm.SerialPortEvent
SerialPortEvent
with the specified serial port, event type, old and new values.
SerialPortEvent
to be propagated.
SerialPortEvent
to be propagated.
public int eventType
getEventType
method.
public static final int DATA_AVAIL
public static final int OUTBUF_EMPTY
public static final int CTS
public static final int DSR
public static final int RI
public static final int CD
public static final int OE
public static final int PE
public static final int FE
public static final int BI
public SerialPortEvent(SerialPort srcport, int eventtype, boolean oldvalue, boolean newvalue)
SerialPortEvent
with the specified serial port, event type, old and new values.
Application programs should not directly create
SerialPortEvent
objects.
public int getEventType()
BI
,
CD
,
CTS
,
DATA_AVAIL
,
DSR
,
FE
,
OE
,
OUTBUF_EMPTY
,
PE
or
RI
.
public boolean getNewValue()
SerialPortEvent
to be propagated.
For example, when the CD bit changes, newValue
reflects the new value of the CD bit.
public boolean getOldValue()
SerialPortEvent
to be propagated.
For example, when the CD bit changes, oldValue
reflects the old value of the CD bit.
All Packages Class Hierarchy This Package Previous Next Index