Package org.glassfish.tyrus.core.coder
Class PrimitiveDecoders.IntegerDecoder
- java.lang.Object
-
- org.glassfish.tyrus.core.coder.CoderAdapter
-
- org.glassfish.tyrus.core.coder.PrimitiveDecoders<java.lang.Integer>
-
- org.glassfish.tyrus.core.coder.PrimitiveDecoders.IntegerDecoder
-
- All Implemented Interfaces:
Decoder
,Decoder.Text<java.lang.Integer>
- Enclosing class:
- PrimitiveDecoders<T>
public static class PrimitiveDecoders.IntegerDecoder extends PrimitiveDecoders<java.lang.Integer>
-
-
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 IntegerDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Integer
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.Integer 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
-
-