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

public class FloatDecoder extends AbstractDecoder implements jakarta.websocket.Decoder.Text<Float>
Default implementation of the Text Message to Float 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 FloatDecoder
     
  • 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

    • FloatDecoder

      public FloatDecoder()
  • Method Details

    • decode

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

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