java.lang.Object
org.eclipse.jetty.ee8.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>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface javax.websocket.Encoder

    javax.websocket.Encoder.Binary<T>, javax.websocket.Encoder.BinaryStream<T>, javax.websocket.Encoder.Text<T>, javax.websocket.Encoder.TextStream<T>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
    void
    init(javax.websocket.EndpointConfig config)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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