Class SerialRawMessageReceiver

  • All Implemented Interfaces:
    org.bidib.jbidibc.messages.MessageProcessor, org.bidib.jbidibc.messages.MessageReceiver

    public class SerialRawMessageReceiver
    extends AbstractRawMessageReceiver
    • Field Detail

      • MSG_RAW_LOGGER

        protected static final org.slf4j.Logger MSG_RAW_LOGGER
    • Constructor Detail

      • SerialRawMessageReceiver

        public SerialRawMessageReceiver​(boolean checkCRC,
                                        MessagePublisher toHostPublisher)
    • Method Detail

      • createMessageParser

        protected void createMessageParser()
      • purgeReceivedDataInBuffer

        public void purgeReceivedDataInBuffer()
      • parseInput

        protected void parseInput​(byte[] receivedData,
                                  int len)
                           throws org.bidib.jbidibc.messages.exception.ProtocolException
        Parse the received data to process the received bidib packets.
        Parameters:
        receivedData - the received data
        len - the length of the received data packet
        Throws:
        org.bidib.jbidibc.messages.exception.ProtocolException
      • processMessage

        protected void processMessage​(byte[] messageArray)
                               throws org.bidib.jbidibc.messages.exception.ProtocolException
        Specified by:
        processMessage in class AbstractRawMessageReceiver
        Throws:
        org.bidib.jbidibc.messages.exception.ProtocolException