public interface MessageParser
Modifier and Type | Method and Description |
---|---|
IncomingMessage |
parseMessage(ByteQueue queue)
Attempt to parse a message out of the queue.
|
IncomingMessage parseMessage(ByteQueue queue) throws java.lang.Exception
queue
- the queue from which to access data for the creation of the messagejava.lang.Exception
- if the data in the queue is sufficient to construct a message, but the message data is invalid, this
method must throw an exception, or it will keep getting the same data.Copyright © 2014 Infinite Automation Systems. All Rights Reserved.