Class DoubleDecoder
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
-
- org.eclipse.jetty.websocket.jsr356.decoders.DoubleDecoder
-
- All Implemented Interfaces:
Decoder,Decoder.Text<Double>
public class DoubleDecoder extends AbstractDecoder implements Decoder.Text<Double>
Default implementation of theDecoder.TextMessage toDoubleto decoder
-
-
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 DoubleDecoderINSTANCE
-
Constructor Summary
Constructors Constructor Description DoubleDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubledecode(String s)booleanwillDecode(String s)-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.decoders.AbstractDecoder
destroy, init
-
-
-
-
Field Detail
-
INSTANCE
public static final DoubleDecoder INSTANCE
-
-
Method Detail
-
decode
public Double decode(String s) throws DecodeException
- Specified by:
decodein interfaceDecoder.Text<Double>- Throws:
DecodeException
-
willDecode
public boolean willDecode(String s)
- Specified by:
willDecodein interfaceDecoder.Text<Double>
-
-