Class TransformedResource
java.lang.Object
org.springframework.core.io.AbstractResource
org.springframework.core.io.ByteArrayResource
org.springframework.web.reactive.resource.TransformedResource
- All Implemented Interfaces:
- InputStreamSource,- Resource
An extension of 
ByteArrayResource that a ResourceTransformer
 can use to represent an original resource preserving all other information
 except the content.- Since:
- 5.0
- Author:
- Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionThis implementation always returnsnull, assuming that this resource type does not have a filename.longThis implementation checks the timestamp of the underlying File, if available.Methods inherited from class org.springframework.core.io.ByteArrayResourcecontentLength, equals, exists, getByteArray, getContentAsByteArray, getContentAsString, getDescription, getInputStream, hashCodeMethods inherited from class org.springframework.core.io.AbstractResourcecreateRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isOpen, isReadable, readableChannel, toString
- 
Constructor Details- 
TransformedResource
 
- 
- 
Method Details- 
getFilenameDescription copied from class:AbstractResourceThis implementation always returnsnull, assuming that this resource type does not have a filename.- Specified by:
- getFilenamein interface- Resource
- Overrides:
- getFilenamein class- AbstractResource
 
- 
lastModifiedpublic long lastModified()Description copied from class:AbstractResourceThis implementation checks the timestamp of the underlying File, if available.- Specified by:
- lastModifiedin interface- Resource
- Overrides:
- lastModifiedin class- AbstractResource
- See Also:
 
 
-