Interface SerialEvent


public interface SerialEvent
A serial device event. SerialEvent objects are delivered to SerialEventListeners when an event occurs.

A type of code is used to identify the event. Additional event types may be defined in the future.

"ThreadSafe"
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Event type indicating data available.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the port name of this event.
    int
    Returns the type of this event.
  • Field Details

    • DATA_AVAILABLE

      static final int DATA_AVAILABLE
      Event type indicating data available.
      See Also:
  • Method Details

    • getType

      int getType()
      Returns the type of this event.
      Returns:
      The type of this event.
    • getComPort

      String getComPort()
      Returns the port name of this event.

      This value must be equal to the value of SerialDevice.SERIAL_COMPORT service property of the SerialDevice.

      Returns:
      The port name of this event.