public class ResourceDecoder extends AbstractDataBufferDecoder<Resource>
Resources.| Modifier and Type | Field and Description | 
|---|---|
| static String | FILENAME_HINTName of hint with a filename for the resource(e.g. | 
logger| Constructor and Description | 
|---|
| ResourceDecoder() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | canDecode(ResolvableType elementType,
         MimeType mimeType)Whether the decoder supports the given target element type and the MIME
 type of the source stream. | 
| Resource | decode(DataBuffer dataBuffer,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints)Decode a data buffer to an Object of type T. | 
| reactor.core.publisher.Flux<Resource> | decode(org.reactivestreams.Publisher<DataBuffer> inputStream,
      ResolvableType elementType,
      MimeType mimeType,
      Map<String,Object> hints)Decode a  DataBufferinput stream into a Flux ofT. | 
decodeDataBuffer, decodeToMono, getMaxInMemorySize, setMaxInMemorySizegetDecodableMimeTypes, getLogger, setLoggerpublic static String FILENAME_HINT
public boolean canDecode(ResolvableType elementType, @Nullable MimeType mimeType)
DecodercanDecode in interface Decoder<Resource>canDecode in class AbstractDecoder<Resource>elementType - the target element type for the output streammimeType - the mime type associated with the stream to decode
 (can be null if not specified)true if supported, false otherwisepublic reactor.core.publisher.Flux<Resource> decode(org.reactivestreams.Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
DecoderDataBuffer input stream into a Flux of T.decode in interface Decoder<Resource>decode in class AbstractDataBufferDecoder<Resource>inputStream - the DataBuffer input stream to decodeelementType - the expected type of elements in the output stream;
 this type must have been previously passed to the Decoder.canDecode(org.springframework.core.ResolvableType, org.springframework.util.MimeType)
 method and it must have returned true.mimeType - the MIME type associated with the input stream (optional)hints - additional information about how to do encodepublic Resource decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String,Object> hints)
DecoderdataBuffer - the DataBuffer to decodeelementType - the expected output typemimeType - the MIME type associated with the datahints - additional information about how to do encodenull