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

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

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