public class SerialInterruptEvent extends EventObject
This class provides the event object for Serial interrupt data receive event.
source
Constructor and Description |
---|
SerialInterruptEvent(Object obj,
int fileDescriptor,
byte[] data)
Default event constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Get the data bytes received in this event.
|
int |
getFileDescriptor()
Get the serial port file descriptor/handle
|
int |
getLength()
Get the length of data bytes received in this event.
|
getSource, toString
public SerialInterruptEvent(Object obj, int fileDescriptor, byte[] data)
obj
- Ignore this parameterfileDescriptor
- The serial file handle/descriptor in usedata
- data bytes received in this event from the serial receive bufferpublic int getFileDescriptor()
public int getLength()
public byte[] getData()
Copyright © 2012–2021 Pi4J. All rights reserved.