public class SerialEvent extends RmiEvent
isRead() method. If checksumming
was enabled on the serial line, the checksumming bytes are suppressed.
The serial I/O string can be retrieved with the getSerialString()
method.| Modifier and Type | Field and Description |
|---|---|
private boolean |
isread
A boolean that indicates a read event if true.
|
private String |
serial
The string writtn or read in from the serial line.
|
localHost, sourceNamesource| Constructor and Description |
|---|
SerialEvent(Object src,
String mess)
Constructs a new serial event with the specified serial I/O string.
|
SerialEvent(Object src,
String mess,
boolean read)
Constructs a new serial event with the specified serial I/O string.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getSerialString()
Returns the serial I/O string.
|
boolean |
isRead()
Returns true if this serial event belongs to a read event.
|
getHost, getSourceName, setSourceName, toStringgetSourceprivate String serial
private boolean isread
public SerialEvent(Object src, String mess)
src - The event sourcemess - The string writn to or read in from the serial port.public SerialEvent(Object src, String mess, boolean read)
src - The event sourcemess - The string writn to or read in from the serial port.read - True if this is a read event.public String getSerialString()
public boolean isRead()