Class ByteBufferEncoder

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

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

    • ByteBufferEncoder

      public ByteBufferEncoder()
  • Method Details

    • destroy

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

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

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