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

public class FloatDecoder extends AbstractDecoder implements javax.websocket.Decoder.Text<Float>
Default implementation of the Text Message to Float decoder
  • Field Details

  • Constructor Details

    • FloatDecoder

      public FloatDecoder()
  • Method Details

    • decode

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

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