BufferingStompDecoder.decode

Decodes one or more STOMP frames from the given {@code ByteBuffer} into a list of {@link Message Messages}. <p>If there was enough data to parse a "content-length" header, then the value is used to determine how much more data is needed before a new attempt to decode is made. <p>If there was not enough data to parse the "content-length", or if there is "content-length" header, every subsequent call to decode attempts to parse again with all available data. Therefore the presence of a "content-length" header helps to optimize the decoding of large messages. @param newBuffer a buffer containing new data to decode @return decoded messages or an empty list @throws StompConversionException raised in case of decoding issues

class BufferingStompDecoder
List!(Message!(byte[]))
decode
(
ByteBuffer newBuffer
)

Meta