Package org.glassfish.tyrus.core.coder
Class PrimitiveDecoders.LongDecoder
- java.lang.Object
-
- org.glassfish.tyrus.core.coder.CoderAdapter
-
- org.glassfish.tyrus.core.coder.PrimitiveDecoders<java.lang.Long>
-
- org.glassfish.tyrus.core.coder.PrimitiveDecoders.LongDecoder
-
- All Implemented Interfaces:
Decoder
,Decoder.Text<java.lang.Long>
- Enclosing class:
- PrimitiveDecoders<T>
public static class PrimitiveDecoders.LongDecoder extends PrimitiveDecoders<java.lang.Long>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.glassfish.tyrus.core.coder.PrimitiveDecoders
PrimitiveDecoders.BooleanDecoder, PrimitiveDecoders.ByteDecoder, PrimitiveDecoders.CharacterDecoder, PrimitiveDecoders.DoubleDecoder, PrimitiveDecoders.FloatDecoder, PrimitiveDecoders.IntegerDecoder, PrimitiveDecoders.LongDecoder, PrimitiveDecoders.ShortDecoder
-
Nested classes/interfaces inherited from interface javax.websocket.Decoder
Decoder.Binary<T>, Decoder.BinaryStream<T>, Decoder.Text<T>, Decoder.TextStream<T>
-
-
Field Summary
-
Fields inherited from class org.glassfish.tyrus.core.coder.PrimitiveDecoders
ALL, ALL_INSTANCES
-
-
Constructor Summary
Constructors Constructor Description LongDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Long
decode(java.lang.String s)
Decode the given String into an object of type T.-
Methods inherited from class org.glassfish.tyrus.core.coder.PrimitiveDecoders
willDecode
-
Methods inherited from class org.glassfish.tyrus.core.coder.CoderAdapter
destroy, init
-
-
-
-
Method Detail
-
decode
public java.lang.Long decode(java.lang.String s) throws DecodeException
Description copied from interface:Decoder.Text
Decode the given String into an object of type T.- Parameters:
s
- string to be decoded.- Returns:
- the decoded message as an object of type T
- Throws:
DecodeException
- If the provided string cannot be decoded to type T
-
-