Class ByteArrayEncoder

java.lang.Object
org.eclipse.jetty.websocket.javax.common.encoders.ByteArrayEncoder
All Implemented Interfaces:
javax.websocket.Encoder, javax.websocket.Encoder.Binary<byte[]>

public class ByteArrayEncoder extends Object implements javax.websocket.Encoder.Binary<byte[]>
  • 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
     
    encode(byte[] 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 Details

    • ByteArrayEncoder

      public ByteArrayEncoder()
  • Method Details

    • destroy

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

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

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