Class StringDecoder
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
-
- org.eclipse.jetty.websocket.jsr356.decoders.StringDecoder
-
- All Implemented Interfaces:
javax.websocket.Decoder
,javax.websocket.Decoder.Text<java.lang.String>
public class StringDecoder extends AbstractDecoder implements javax.websocket.Decoder.Text<java.lang.String>
Default implementation of theDecoder.Text
Message toString
decoder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.Decoder
javax.websocket.Decoder.Binary<T extends java.lang.Object>, javax.websocket.Decoder.BinaryStream<T extends java.lang.Object>, javax.websocket.Decoder.Text<T extends java.lang.Object>, javax.websocket.Decoder.TextStream<T extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description static StringDecoder
INSTANCE
-
Constructor Summary
Constructors Constructor Description StringDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
decode(java.lang.String s)
boolean
willDecode(java.lang.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 java.lang.String decode(java.lang.String s) throws javax.websocket.DecodeException
- Specified by:
decode
in interfacejavax.websocket.Decoder.Text<java.lang.String>
- Throws:
javax.websocket.DecodeException
-
willDecode
public boolean willDecode(java.lang.String s)
- Specified by:
willDecode
in interfacejavax.websocket.Decoder.Text<java.lang.String>
-
-