Class ByteBufferEncoder

  • All Implemented Interfaces:
    javax.websocket.Encoder, javax.websocket.Encoder.Binary<java.nio.ByteBuffer>

    public class ByteBufferEncoder
    extends java.lang.Object
    implements javax.websocket.Encoder.Binary<java.nio.ByteBuffer>
    • Nested Class Summary

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

        javax.websocket.Encoder.Binary<T extends java.lang.Object>, javax.websocket.Encoder.BinaryStream<T extends java.lang.Object>, javax.websocket.Encoder.Text<T extends java.lang.Object>, javax.websocket.Encoder.TextStream<T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      java.nio.ByteBuffer encode​(java.nio.ByteBuffer object)  
      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 Detail

      • ByteBufferEncoder

        public ByteBufferEncoder()
    • Method Detail

      • destroy

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

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

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