Class StringDecoder
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
-
- org.eclipse.jetty.websocket.jsr356.decoders.StringDecoder
-
- All Implemented Interfaces:
Decoder,Decoder.Text<String>
public class StringDecoder extends AbstractDecoder implements Decoder.Text<String>
Default implementation of theDecoder.TextMessage toStringdecoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.Decoder
Decoder.Binary<T extends Object>, Decoder.BinaryStream<T extends Object>, Decoder.Text<T extends Object>, Decoder.TextStream<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDecoderINSTANCE
-
Constructor Summary
Constructors Constructor Description StringDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecode(String s)booleanwillDecode(String s)-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
destroy, init
-
-
-
-
Field Detail
-
INSTANCE
public static final StringDecoder INSTANCE
-
-
Method Detail
-
decode
public String decode(String s) throws DecodeException
- Specified by:
decodein interfaceDecoder.Text<String>- Throws:
DecodeException
-
willDecode
public boolean willDecode(String s)
- Specified by:
willDecodein interfaceDecoder.Text<String>
-
-