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

public class IntegerDecoder extends AbstractDecoder implements javax.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 javax.websocket.DecodeException
      Specified by:
      decode in interface javax.websocket.Decoder.Text<Integer>
      Throws:
      javax.websocket.DecodeException
    • willDecode

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