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.

Author:
$Id: fca8305ddee51d142ff0c22c6c54ca4acac4fbf3 $
  • 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.