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 int DATA_AVAILABLE
      Event type indicating data available.
    • Field Detail

      • DATA_AVAILABLE

        static final int DATA_AVAILABLE
        Event type indicating data available.
        See Also:
        Constant Field Values
    • Method Detail

      • getType

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

        java.lang.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.