Encoder.Binary (WebSocket 2.2 API Documentation - Apache Tomcat 11.0.22)
Description: declaration: package: jakarta.websocket, interface: Encoder, interface: Binary

# Interface Encoder.Binary<T>

All Superinterfaces:
  `Encoder`

Enclosing interface:
  `Encoder`

public static interface Encoder.Binary<T> extends Encoder

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from interface Encoder

  `Encoder.Binary<T>, Encoder.BinaryStream<T>, Encoder.Text<T>, Encoder.TextStream<T>`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ByteBuffer`
  `encode(T object)`

  ### Methods inherited from interface Encoder

  `destroy, init`

- ## Method Details

  - ### encode

    ByteBuffer encode(T object) throws EncodeException
    Throws:
      `EncodeException`