Interface SerialPortEvent
@NonNullByDefault
public interface SerialPortEvent
Interface for a serial port event.
- Author:
- Markus Rathgeb - Initial contribution
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the type of the event.boolean
Gets the new value of the state change that caused the SerialPortEvent to be propagated.
-
Field Details
-
DATA_AVAILABLE
static final int DATA_AVAILABLE- See Also:
-
OUTPUT_BUFFER_EMPTY
static final int OUTPUT_BUFFER_EMPTY- See Also:
-
CTS
static final int CTS- See Also:
-
DSR
static final int DSR- See Also:
-
RI
static final int RI- See Also:
-
CD
static final int CD- See Also:
-
OE
static final int OE- See Also:
-
PE
static final int PE- See Also:
-
FE
static final int FE- See Also:
-
BI
static final int BI- See Also:
-
PORT_DISCONNECTED
static final int PORT_DISCONNECTED- See Also:
-
-
Method Details
-
getEventType
int getEventType()Get the type of the event.- Returns:
- the event type
-
getNewValue
boolean getNewValue()Gets the new value of the state change that caused the SerialPortEvent to be propagated. For example, when the CD bit changes, newValue reflects the new value of the CD bit.
-