java.lang.Object
org.eclipse.jetty.websocket.javax.common.decoders.AbstractDecoder
org.eclipse.jetty.websocket.javax.common.decoders.ByteDecoder
All Implemented Interfaces:
javax.websocket.Decoder, javax.websocket.Decoder.Text<Byte>

public class ByteDecoder extends AbstractDecoder implements javax.websocket.Decoder.Text<Byte>
Default implementation of the Decoder.Text Message to Byte decoder
  • Nested Class Summary

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

    javax.websocket.Decoder.Binary<T>, javax.websocket.Decoder.BinaryStream<T>, javax.websocket.Decoder.Text<T>, javax.websocket.Decoder.TextStream<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ByteDecoder
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     

    Methods inherited from class org.eclipse.jetty.websocket.javax.common.decoders.AbstractDecoder

    destroy, init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javax.websocket.Decoder

    destroy, init
  • Field Details

  • Constructor Details

    • ByteDecoder

      public ByteDecoder()
  • Method Details

    • decode

      public Byte decode(String s) throws javax.websocket.DecodeException
      Specified by:
      decode in interface javax.websocket.Decoder.Text<Byte>
      Throws:
      javax.websocket.DecodeException
    • willDecode

      public boolean willDecode(String s)
      Specified by:
      willDecode in interface javax.websocket.Decoder.Text<Byte>