public class WrapperDemo extends java.lang.Object implements ICallbacks, ICallbacks
Modifier and Type | Class and Description |
---|---|
class |
WrapperDemo.DemoException |
Constructor and Description |
---|
WrapperDemo() |
Modifier and Type | Method and Description |
---|---|
void |
initializeParameters()
Initialize parameters.
|
static void |
main(java.lang.String[] args)
Launches the demo
|
void |
onReceivedStream(byte[] stream)
onReceivedStream callback method.
|
void |
onSentStream(byte[] stream)
OnSentStream callback method.
|
void |
onStateChange(HDLCProtocolState state)
onStateChange callback method.
|
boolean |
processXmlFile(java.lang.String filePath)
Processes an XML file.
|
public void initializeParameters()
You should be
public boolean processXmlFile(java.lang.String filePath) throws icube.xmlpdu.infra.XmlPduException, java.io.IOException, WRAPPERException
filePath
- the file pathWRAPPERException
icube.xmlpdu.infra.XmlPduException
java.io.IOException
public static void main(java.lang.String[] args)
public void onReceivedStream(byte[] stream)
ICallbacks
Called when a byte stream is received from the meter.
onReceivedStream
in interface ICallbacks
stream
- Byte stream received.public void onSentStream(byte[] stream)
ICallbacks
Called when a byte stream is sent to the meter.
onSentStream
in interface ICallbacks
stream
- Byte stream sent.public void onStateChange(HDLCProtocolState state)
ICallbacks
Called when a Meter's state change occurs.
state
- The new state.HDLCProtocolState