Class ByteArrayDecoder

java.lang.Object
org.eclipse.jetty.websocket.javax.common.decoders.AbstractDecoder
org.eclipse.jetty.websocket.javax.common.decoders.ByteArrayDecoder
All Implemented Interfaces:
javax.websocket.Decoder, javax.websocket.Decoder.Binary<byte[]>

public class ByteArrayDecoder extends AbstractDecoder implements javax.websocket.Decoder.Binary<byte[]>
  • Field Details

  • Constructor Details

    • ByteArrayDecoder

      public ByteArrayDecoder()
  • Method Details

    • decode

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

      public boolean willDecode(ByteBuffer bytes)
      Specified by:
      willDecode in interface javax.websocket.Decoder.Binary<byte[]>