public class ResourceEncoder extends AbstractSingleValueEncoder<Resource>
Resources.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| 构造器和说明 |
|---|
ResourceEncoder() |
ResourceEncoder(int bufferSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canEncode(ResolvableType elementType,
MimeType mimeType)
Whether the encoder supports the given source element type and the MIME
type for the output stream.
|
protected reactor.core.publisher.Flux<DataBuffer> |
encode(Resource resource,
DataBufferFactory dataBufferFactory,
ResolvableType type,
MimeType mimeType,
Map<String,Object> hints)
Encode
T to an output DataBuffer stream. |
encodegetEncodableMimeTypesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentLengthpublic static final int DEFAULT_BUFFER_SIZE
public ResourceEncoder()
public ResourceEncoder(int bufferSize)
public boolean canEncode(ResolvableType elementType, @Nullable MimeType mimeType)
Encoderprotected reactor.core.publisher.Flux<DataBuffer> encode(Resource resource, DataBufferFactory dataBufferFactory, ResolvableType type, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
AbstractSingleValueEncoderT to an output DataBuffer stream.encode 在类中 AbstractSingleValueEncoder<Resource>resource - the value to processdataBufferFactory - a buffer factory used to create the outputtype - the stream element type to processmimeType - the mime type to processhints - Additional information about how to do decode, optional