public class SerialPortEvent extends EventObject
| Modifier and Type | Field and Description |
|---|---|
static int |
BI
Break Interrupt
|
static int |
CTS
Clear To Send
|
static int |
DATA_AVAILABLE
Data is available from the port
|
static int |
FE
Framing Error
|
static int |
OE
Overrun Error
|
static int |
OUTPUT_BUFFER_EMPTY
Output buffer is empty
|
static int |
PE
Parity Error
|
source| Constructor and Description |
|---|
SerialPortEvent(SerialPort serialport,
int eventtype,
boolean oldval,
boolean newval)
Constructs a SerialPortEvent with the specified serial port, event type, old and new values.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Get the event type.
|
boolean |
getNewValue()
Gets the new value of the state change that caused the SerialPortEvent to be propagated.
|
boolean |
getOldValue()
Gets the old value of the state change that caused the SerialPortEvent to be propagated.
|
getSource, toStringpublic static final int CTS
public static final int PE
public static final int OE
public static final int FE
public static final int OUTPUT_BUFFER_EMPTY
public static final int DATA_AVAILABLE
public static final int BI
public SerialPortEvent(SerialPort serialport, int eventtype, boolean oldval, boolean newval)
serialport - the porteventtype - an event typeoldval - old valuenewval - new valuepublic int getEventType()
public boolean getNewValue()
public boolean getOldValue()