public interface SerialPortOperationResult extends OperationResult
SerialPortOperationResult
interface extends OperationResult
to provide specific results for serial port operations.
It is used by the serial port device implementation to inform an application about the completion status of a requested operation.
The getResultCode()
method, inherited from OperationResult
, retrieves the result code of the operation.
Standard result codes are defined in OperationResult
.
This interface also provides additional functionalities specific to serial port operations, such as retrieving the data buffer and its length.
Modifier and Type | Field and Description |
---|---|
static int |
LEVEL_3_HALTED
Error code indicating that the operation was halted due to the expiration of a timeout, specifically for a serial port disconnection.
|
CANCEL, ERR_DEVICE_BASE, ERR_GENERAL_ERROR, ERR_NO_INFO, ERR_NO_PERMISSION, ERR_TIMEOUT, NONE, SUCCESS
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Retrieves the data buffer resulting from the serial port operation.
|
int |
getDataLength()
Retrieves the length of the data obtained in the serial port operation.
|
getResultCode
static final int LEVEL_3_HALTED
byte[] getData()
int getDataLength()