/** * Create a message parser. * * @param config the parser configuration * @param listener the message listener */ public FIXMessageParser(FIXConfig config, FIXMessageListener listener) { this.message = new FIXMessage(config.getMaxFieldCount(), config.getFieldCapacity()); this.checkSumEnabled = config.isCheckSumEnabled(); this.listener = listener; this.beginString = new FIXValue(BEGIN_STRING_FIELD_CAPACITY); this.bodyLength = new FIXValue(BODY_LENGTH_FIELD_CAPACITY); this.checkSum = new FIXValue(CHECK_SUM_FIELD_CAPACITY); }