Package org.glassfish.tyrus.core.coder
Class PrimitiveDecoders.ByteDecoder
java.lang.Object
org.glassfish.tyrus.core.coder.CoderAdapter
org.glassfish.tyrus.core.coder.PrimitiveDecoders<Byte>
org.glassfish.tyrus.core.coder.PrimitiveDecoders.ByteDecoder
- All Implemented Interfaces:
Decoder
,Decoder.Text<Byte>
- Enclosing class:
PrimitiveDecoders<T>
-
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
-
Method Summary
Methods inherited from class org.glassfish.tyrus.core.coder.PrimitiveDecoders
willDecode
Methods inherited from class org.glassfish.tyrus.core.coder.CoderAdapter
destroy, init
-
Constructor Details
-
ByteDecoder
public ByteDecoder()
-
-
Method Details
-
decode
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
-