List < Message < byte [ ] >> function ( ByteBuffer arg0 , MultiValueMap < String , String > arg1 ) { List < Message < byte [ ] >> loc0 = new ArrayList < > ( ) ; while ( arg0 . hasRemaining ( ) ) { Message < byte [ ] > loc1 = decodeMessage ( arg0 , arg1 ) ; if ( loc1 != null ) { loc0 . add ( loc1 ) ; } else { break ; } } return loc0 ; }
decodes one or more stomp frames from the given buffer and returnsa list of message s . if the given bytebuffer contains only partial stomp frame content and no complete stomp frames , an empty list is returned , and the buffer is reset to to where it was . if the buffer contains one ore more stomp frames , those are returned and the buffer reset to point to the beginning of the unused partial content . the output partialmessageheaders map is used to store successfully parsed headers in case of partial content . the caller can then check if a `` content-length '' header was read , which helps to determine how much more content is needed before the next attempt to decode . concode_field_sep byte[] HEARTBEAT_PAYLOAD concode_elem_sep Charset UTF8_CHARSET concode_elem_sep Log logger concode_elem_sep MessageHeaderInitializer headerInitializer concode_field_sep void setHeaderInitializer concode_elem_sep byte[] readPayload concode_elem_sep MessageHeaderInitializer getHeaderInitializer concode_elem_sep void skipLeadingEol concode_elem_sep void initHeaders concode_elem_sep void readHeaders concode_elem_sep String readCommand concode_elem_sep String unescape concode_elem_sep Message<byte[]> decodeMessage concode_elem_sep boolean tryConsumeEndOfLine