- Type Parameters:
From- the decoded typeTo- the encoded type
- All Superinterfaces:
Encoder<From,To>
- All Known Subinterfaces:
MediaTypeConverter<From>,ReactiveConverter<A,B>
- All Known Implementing Classes:
ByteBufConverter,JacksonByteBufConverter,JacksonStringConverter,JsonByteBufMediaTypeConverter,JsonStringMediaTypeConverter,NdJsonByteBufMediaTypeConverter,NdJsonStringMediaTypeConverter,TextByteBufMediaTypeConverter,TextStringMediaTypeConverter
A reactive encoder.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionencodeMany(Flux<T> value) Encodes a flux stream of values to a stream of values.encodeMany(Flux<T> value, Class<T> type) Encodes a flux stream of values whose type is represented by the specified class to a stream of values.encodeMany(Flux<T> value, Type type) Encodes a flux stream of values whose type is the specified type to a stream of values.Encodes a mono stream of values to a stream of values.Encodes a mono stream of values whose type is represented by the specified class to a stream of values.Encodes a mono stream of values whose type is the specified type to a stream of values.
-
Method Details
-
encodeOne
Encodes a mono stream of values to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the mono stream of values to encode- Returns:
- a stream of encoded values
-
encodeOne
Encodes a mono stream of values whose type is represented by the specified class to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the mono stream of values to encodetype- the class of the decoded object- Returns:
- a stream of encoded values
-
encodeOne
Encodes a mono stream of values whose type is the specified type to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the mono stream of values to encodetype- the type of the decoded object- Returns:
- a stream of encoded values
-
encodeMany
Encodes a flux stream of values to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the flux stream of values to encode- Returns:
- a stream of encoded values
-
encodeMany
Encodes a flux stream of values whose type is represented by the specified class to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the flux stream of values to encodetype- the class of the decoded object- Returns:
- a stream of encoded values
-
encodeMany
Encodes a flux stream of values whose type is the specified type to a stream of values.
- Type Parameters:
T- the type of the decoded object- Parameters:
value- the flux stream of values to encodetype- the type of the decoded object- Returns:
- a stream of encoded values
-