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

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

  • Constructor Details

    • StringDecoder

      public StringDecoder()
  • Method Details

    • decode

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

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