java.lang.Object
org.eclipse.jetty.websocket.jakarta.common.decoders.AbstractDecoder
org.eclipse.jetty.websocket.jakarta.common.decoders.ShortDecoder
All Implemented Interfaces:
jakarta.websocket.Decoder, jakarta.websocket.Decoder.Text<Short>

public class ShortDecoder extends AbstractDecoder implements jakarta.websocket.Decoder.Text<Short>
Default implementation of the Decoder.Text Message to Short decoder
  • Nested Class Summary

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

    jakarta.websocket.Decoder.Binary<T extends Object>, jakarta.websocket.Decoder.BinaryStream<T extends Object>, jakarta.websocket.Decoder.Text<T extends Object>, jakarta.websocket.Decoder.TextStream<T extends Object>
  • Field Summary

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
     

    Methods inherited from class org.eclipse.jetty.websocket.jakarta.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 jakarta.websocket.Decoder

    destroy, init
  • Field Details

  • Constructor Details

    • ShortDecoder

      public ShortDecoder()
  • Method Details

    • decode

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

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