Class ByteBufferDecoder

java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.decoders.AbstractDecoder
org.eclipse.jetty.websocket.jakarta.common.decoders.ByteBufferDecoder
All Implemented Interfaces:
jakarta.websocket.Decoder, jakarta.websocket.Decoder.Binary<ByteBuffer>

public class ByteBufferDecoder extends AbstractDecoder implements jakarta.websocket.Decoder.Binary<ByteBuffer>
  • Field Details

  • Constructor Details

    • ByteBufferDecoder

      public ByteBufferDecoder()
  • Method Details

    • decode

      public ByteBuffer decode(ByteBuffer bytes) throws jakarta.websocket.DecodeException
      Specified by:
      decode in interface jakarta.websocket.Decoder.Binary<ByteBuffer>
      Throws:
      jakarta.websocket.DecodeException
    • willDecode

      public boolean willDecode(ByteBuffer bytes)
      Specified by:
      willDecode in interface jakarta.websocket.Decoder.Binary<ByteBuffer>