Top Description Fields Methods
org.osgi.service.serial

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

Modifier and TypeField and Description
public static final int
DATA_AVAILABLE

Event type indicating data available.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The port name of this event.
getComPort
()

Returns the port name of this event.

public int

Returns:

The type of this event.
getType
()

Returns the type of this event.

Field Detail

DATA_AVAILABLEback to summary
public static final int DATA_AVAILABLE

Event type indicating data available.

Method Detail

getComPortback to summary
public 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:String

The port name of this event.

getTypeback to summary
public int getType()

Returns the type of this event.

Returns:int

The type of this event.