public class DefaultIOSubscriber extends IOSubscriber
This class is provided as an example of how to write your own IO subscriber, and can be used as it is.
IOSubscriber| Constructor and Description |
|---|
DefaultIOSubscriber(java.lang.String devName)
Constructor.
|
DefaultIOSubscriber(java.lang.String devName,
boolean rawmode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
input(java.lang.String s)
Will get called as soon as we have input (data which is received).
|
void |
output(java.lang.String s)
Will get called as soon as we have output (data which is being sent).
|
public DefaultIOSubscriber(java.lang.String devName)
devName - The name of the device.public DefaultIOSubscriber(java.lang.String devName,
boolean rawmode)
devName - The name of the device.rawmode - If true 'raw' text will appear instead of pretty
formatted XML.public void input(java.lang.String s)
input in class IOSubscribers - Text being receivedpublic void output(java.lang.String s)
output in class IOSubscribers - Text being sent