- Type Parameters:
To
- the encoded type
- All Known Subinterfaces:
JoinablePrimitiveEncoder<To>
,ObjectConverter<From>
- All Known Implementing Classes:
ByteBufConverter
,ParameterConverter
,StringCompositeConverter
,StringConverter
,TextByteBufMediaTypeConverter
An object encoder providing primitive bindings to encode primitive and common types.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionEncodes file.Encodes boolean.Encodes byte.Encodes character.Encodes class.Encodes double.Encodes float.Encodes integer.Encodes long.Encodes short.Encodes string.encode
(BigDecimal value) Encodes big decimal.encode
(BigInteger value) Encodes big integer.encode
(InetAddress value) Encodes inet address.encode
(InetSocketAddress value) Encodes inet socket address.Encodes URI.Encodes URL.Encodes path.Encodes local date.encode
(LocalDateTime value) Encodes local datetime.encode
(ZonedDateTime value) Encodes zoned datetime.Encodes currency.Encodes locale.Encodes pattern.
-
Method Details
-
encode
Encodes byte.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes short.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes integer.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes long.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes float.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes double.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes character.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes boolean.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes string.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes big integer.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes big decimal.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes local date.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes local datetime.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes zoned datetime.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes currency.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes locale.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes file.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes path.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes URI.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes URL.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes pattern.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes inet address.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes inet socket address.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-
encode
Encodes class.
- Parameters:
value
- the value to encode- Returns:
- an encoded value
- Throws:
ConverterException
- if there was an error encoding the value
-