Class SerialMessageParser

java.lang.Object
org.bidib.jbidibc.serial.SerialMessageParser
All Implemented Interfaces:
MessageParser

public class SerialMessageParser extends Object implements MessageParser
  • Field Details

    • MSG_RAW_LOGGER

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

    • SerialMessageParser

      public SerialMessageParser()
  • Method Details

    • isEscapeHot

      public boolean isEscapeHot()
    • setEscapeHot

      public void setEscapeHot(boolean escapeHot)
    • reset

      public void reset()
      Specified by:
      reset in interface MessageParser
    • parseInput

      public void parseInput(org.bidib.jbidibc.messages.MessageProcessor messageProcessor, byte[] receivedData, int len) throws org.bidib.jbidibc.messages.exception.ProtocolException
      Parse the received data to process the received bidib packets.
      Specified by:
      parseInput in interface MessageParser
      Parameters:
      messageProcessor - the message processor that receives the bidib messages
      receivedData - the received data
      len - the length of the received data packet
      Throws:
      org.bidib.jbidibc.messages.exception.ProtocolException