Buffers.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode(ResolvableType
the type of elements in the source stream type, MimeType the MIME type for the output stream
(can be mimeType)null if not specified)Overrides org. Implements org. Whether the encoder supports the given source element type and the MIME type for the output stream. |
| public Flux | encode(Publisher<? extends Buffer>
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. Encode a stream of Objects of type |
| public DataBuffer | encodeValue(Buffer
the value to be encoded buffer, DataBufferFactory for creating the output bufferFactory, ResolvableType DataBufferthe type for the value being encoded valueType, MimeType the MIME type for the output content (optional) mimeType, Map<String, Object> additional information about how to encode hints)Overrides default org. Encode an Object of type T to a data buffer. |
| Netty5BufferEncoder | back to summary |
|---|---|
| public Netty5BufferEncoder() | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(ResolvableType type, MimeType mimeType) Overrides org. Implements org. Doc from org. Whether the encoder supports the given source element type and the MIME type for the output stream.
| |
| encode | back to summary |
|---|---|
| public Flux Implements org. Doc from org. Encode a stream of Objects of type
| |
| encodeValue | back to summary |
|---|---|
| public DataBuffer encodeValue(Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Overrides default org. Doc from org. Encode an Object of type T to a data buffer. This is useful for scenarios, that distinct messages (or events) are encoded and handled individually, in fully aggregated form. By default this method raises
| |