- Type Parameters:
From
- the encoded type
- All Known Subinterfaces:
ObjectConverter<From>
,SplittablePrimitiveDecoder<From>
- All Known Implementing Classes:
ByteBufConverter
,ObjectDecoder
,ParameterConverter
,StringCompositeConverter
,StringConverter
,TextByteBufMediaTypeConverter
An object decoder providing primitive bindings to decode to primitive and common types.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondecodeBigDecimal
(From value) Decodes to big decimal.decodeBigInteger
(From value) Decodes to big integer.decodeBoolean
(From value) Decodes to boolean.decodeByte
(From value) Decodes to byte.decodeCharacter
(From value) Decodes to character.Class
<?> decodeClass
(From value) Decodes to class.decodeCurrency
(From value) Decodes to currency.decodeDouble
(From value) Decodes to double.decodeFile
(From value) Decodes to file.decodeFloat
(From value) Decodes to float.decodeInetAddress
(From value) Decodes to inet address.decodeInetSocketAddress
(From value) Decodes to inet socket address.decodeInteger
(From value) Decodes to integer.decodeLocalDate
(From value) Decodes to local date.decodeLocalDateTime
(From value) Decodes to local datetime.decodeLocale
(From value) Decodes to locale.decodeLong
(From value) Decodes to long.decodePath
(From value) Decodes to path.decodePattern
(From value) Decodes to pattern.decodeShort
(From value) Decodes to short.decodeString
(From value) Decodes to string.Decodes to URI.Decodes to URL.decodeZonedDateTime
(From value) Decodes to zoned datetime.
-
Method Details
-
decodeByte
Decodes to byte.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeShort
Decodes to short.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeInteger
Decodes to integer.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeLong
Decodes to long.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeFloat
Decodes to float.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeDouble
Decodes to double.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeCharacter
Decodes to character.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeBoolean
Decodes to boolean.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeString
Decodes to string.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeBigInteger
Decodes to big integer.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeBigDecimal
Decodes to big decimal.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeLocalDate
Decodes to local date.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeLocalDateTime
Decodes to local datetime.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeZonedDateTime
Decodes to zoned datetime.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeCurrency
Decodes to currency.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeLocale
Decodes to locale.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeFile
Decodes to file.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodePath
Decodes to path.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeURI
Decodes to URI.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeURL
Decodes to URL.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodePattern
Decodes to pattern.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeInetAddress
Decodes to inet address.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeInetSocketAddress
Decodes to inet socket address.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-
decodeClass
Decodes to class.
- Parameters:
value
- the encoded value to decode- Returns:
- a decoded value
- Throws:
ConverterException
- if there was an error decoding the value
-