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