Resources.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public static final int | DEFAULT_BUFFER_SIZE
The default buffer size used by the encoder. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canEncode(ResolvableType
the type of elements in the source stream elementType, 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. |
| protected Flux | encode(Resource
the value to process resource, DataBufferFactory a buffer factory used to create the output bufferFactory, 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)Implements abstract org. Encode |
| bufferSize | back to summary |
|---|---|
| private final int bufferSize | |
| DEFAULT_BUFFER_SIZE | back to summary |
|---|---|
| public static final int DEFAULT_BUFFER_SIZE The default buffer size used by the encoder. | |
| ResourceEncoder | back to summary |
|---|---|
| public ResourceEncoder() | |
| ResourceEncoder | back to summary |
|---|---|
| public ResourceEncoder(int bufferSize) | |
| canEncode | back to summary |
|---|---|
| public boolean canEncode(ResolvableType elementType, 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 |
|---|---|
| protected Flux Implements abstract org. Doc from org. Encode
| |