org.springframework.core.codec.Encoder
classes that can only deal with a single value.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final Flux | encode(Publisher<? extends T>
the input stream of Objects to encode. If the input should be
encoded as a single value rather than as a stream of elements, an instance of
inputStream, DataBufferFactory Mono should be used.for creating output stream bufferFactory, ResolvableType DataBuffer'sthe expected type of elements in the input stream;
this type must have been previously passed to the elementType, MimeType canEncode
method and it must have returned true.the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Implements org. T into a DataBuffer
output stream.
|
| protected abstract Flux | Returns: the output streamthe value to process t, DataBufferFactory a buffer factory used to create the output dataBufferFactory, ResolvableType the stream element type to process type, MimeType the mime type to process mimeType, Map<String, Object> additional information about how to do decode, optional hints)Encode |
| AbstractSingleValueEncoder | back to summary |
|---|---|
| public AbstractSingleValueEncoder(MimeType... supportedMimeTypes) | |
| encode | back to summary |
|---|---|
| public final Flux Implements org. Doc from org. Encode a stream of Objects of type
| |
| encode | back to summary |
|---|---|
| protected abstract Flux Encode
| |