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

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

  • Constructor Details

    • IntegerDecoder

      public IntegerDecoder()
  • Method Details

    • decode

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

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