org.springframework.messaging.simp.stomp

## Class StompEncoder

- java.lang.Object
- - org.springframework.messaging.simp.stomp.StompEncoder

-     public final class StompEncoder
      extends Object

  An encoder for STOMP frames.
  Since:
    4.0
  Author:
    Andy Wilkinson

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StompEncoder()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `encode(Message<byte[]> message)` Encodes the given STOMP `message` into a `byte[]`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### StompEncoder

          public StompEncoder()

  - ### Method Detail

    - #### encode

          public byte[] encode(Message<byte[]> message)

      Encodes the given STOMP `message` into a `byte[]`
      Parameters:
        `message` - the message to encode
      Returns:
        the encoded message