Package org.bidib.jbidibc.serial
Class SerialMessageParser
java.lang.Object
org.bidib.jbidibc.serial.SerialMessageParser
- All Implemented Interfaces:
MessageParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidparseInput(org.bidib.jbidibc.messages.MessageProcessor messageProcessor, byte[] receivedData, int len) Parse the received data to process the received bidib packets.voidreset()voidsetEscapeHot(boolean escapeHot)
-
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:
resetin interfaceMessageParser
-
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:
parseInputin interfaceMessageParser- Parameters:
messageProcessor- the message processor that receives the bidib messagesreceivedData- the received datalen- the length of the received data packet- Throws:
org.bidib.jbidibc.messages.exception.ProtocolException
-