spring-framework / org.springframework.messaging.simp.stomp / StompDecoder / <init>

<init>

StompDecoder()

Decodes one or more STOMP frames contained in a ByteBuffer.

An attempt is made to read all complete STOMP frames from the buffer, which could be zero, one, or more. If there is any left-over content, i.e. an incomplete STOMP frame, at the end the buffer is reset to point to the beginning of the partial content. The caller is then responsible for dealing with that incomplete content by buffering until there is more input available.

Author
Andy Wilkinson

Author
Rossen Stoyanchev

Since
4.0