Class ShortDecoder

java.lang.Object
org.eclipse.jetty.ee10.websocket.jakarta.common.decoders.AbstractDecoder
org.eclipse.jetty.ee10.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>, jakarta.websocket.Decoder.BinaryStream<T>, jakarta.websocket.Decoder.Text<T>, jakarta.websocket.Decoder.TextStream<T>
  • 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 AbstractDecoder

    destroy, init

    Methods inherited from class 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>