public class TransformedResource
extends org.springframework.core.io.ByteArrayResource
ByteArrayResource that a ResourceTransformer
can use to represent an original resource preserving all other information
except the content.| Constructor and Description |
|---|
TransformedResource(org.springframework.core.io.Resource original,
byte[] transformedContent) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
long |
lastModified() |
contentLength, equals, exists, getByteArray, getDescription, getInputStream, hashCodepublic TransformedResource(org.springframework.core.io.Resource original,
byte[] transformedContent)
@Nullable public String getFilename()
getFilename in interface org.springframework.core.io.ResourcegetFilename in class org.springframework.core.io.AbstractResourcepublic long lastModified()
lastModified in interface org.springframework.core.io.ResourcelastModified in class org.springframework.core.io.AbstractResource