public class FIXProtocolParser extends java.lang.Object implements ProtocolParser
Constructor and Description |
---|
FIXProtocolParser(FIXProtocol messageType)
Initializes a new instance of the FIXProtocolParser class.
|
Modifier and Type | Method and Description |
---|---|
void |
process(java.nio.ByteBuffer buffer,
int remainingBytes,
MessageHandler listener)
Processes the byte stream using the FIX protocal and invokes
the provided message handler.
|
public FIXProtocolParser(FIXProtocol messageType)
messageType
- The type of FIX protocal being used.public void process(java.nio.ByteBuffer buffer, int remainingBytes, MessageHandler listener) throws StreamException
process
in interface ProtocolParser
buffer
- The byte stream to process.remainingBytes
- The number of remaining bytes in the stream.listener
- The message handler to invoke.StreamException
- Thrown when the buffer contains corrupt data or data that is in an invalid format.