Class ByteBufferEncoder

java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.encoders.ByteBufferEncoder
All Implemented Interfaces:
jakarta.websocket.Encoder, jakarta.websocket.Encoder.Binary<ByteBuffer>

public class ByteBufferEncoder extends Object implements jakarta.websocket.Encoder.Binary<ByteBuffer>
  • Constructor Details

    • ByteBufferEncoder

      public ByteBufferEncoder()
  • Method Details

    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.websocket.Encoder
    • encode

      public ByteBuffer encode(ByteBuffer object) throws jakarta.websocket.EncodeException
      Specified by:
      encode in interface jakarta.websocket.Encoder.Binary<ByteBuffer>
      Throws:
      jakarta.websocket.EncodeException
    • init

      public void init(jakarta.websocket.EndpointConfig config)
      Specified by:
      init in interface jakarta.websocket.Encoder