/** * Parse the received data to process the received bidib packets. * * @param input * the received data * @throws ProtocolException */ protected void parseInput(final ByteArrayOutputStream input) throws ProtocolException { MSG_RAW_LOGGER.info("<<<< len: {}, data: {}", input.size(), ByteUtils.bytesToHex(input)); // if a CRC error is detected in splitMessages the reading loop will terminate ... try { processMessages(input); } catch (ProtocolException ex) { LOGGER.warn("Process messages failed.", ex); } } }