public class TransformedResource extends ByteArrayResource
ByteArrayResource that a ResourceTransformer
 can use to represent an original resource preserving all other information
 except the content.| Constructor and Description | 
|---|
TransformedResource(Resource original,
                   byte[] transformedContent)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getFilename()
This implementation always returns  
null,
 assuming that this resource type does not have a filename. | 
long | 
lastModified()
This implementation checks the timestamp of the underlying File,
 if available. 
 | 
contentLength, equals, exists, getByteArray, getDescription, getInputStream, hashCodecreateRelative, getFile, getFileForLastModifiedCheck, getURI, getURL, isFile, isOpen, isReadable, readableChannel, toStringpublic TransformedResource(Resource original, byte[] transformedContent)
@Nullable public String getFilename()
AbstractResourcenull,
 assuming that this resource type does not have a filename.getFilename in interface ResourcegetFilename in class AbstractResourcepublic long lastModified()
                  throws IOException
AbstractResourcelastModified in interface ResourcelastModified in class AbstractResourceIOException - if the resource cannot be resolved
 (in the file system or as some other known physical resource type)AbstractResource.getFileForLastModifiedCheck()