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

public class DoubleDecoder extends AbstractDecoder implements jakarta.websocket.Decoder.Text<Double>
Default implementation of the Decoder.Text Message to Double to decoder
  • Field Details

  • Constructor Details

    • DoubleDecoder

      public DoubleDecoder()
  • Method Details

    • decode

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

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