- All Implemented Interfaces:
org.craftercms.core.service.Content
public class S3Content
extends Object
implements org.craftercms.core.service.Content
Represents the content of an S3 object.
- Since:
- 3.1.4
- Author:
- jross, avasquez
-
Field Summary
Fields
protected byte[]
protected long
When the file was last modified.
protected long
-
Constructor Summary
Constructors
S3Content(com.amazonaws.services.s3.model.ObjectMetadata objectMetadata,
boolean shouldCache,
Supplier<com.amazonaws.services.s3.model.S3Object> supplier)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
lastModified
protected long lastModified
When the file was last modified.
-
length
protected long length
The length of the file.
-
content
protected byte[] content
The content of the file.
-
-
Method Details
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interface org.craftercms.core.service.Content
-
getLength
public long getLength()
- Specified by:
getLength
in interface org.craftercms.core.service.Content
-