Package org.craftercms.engine.store.s3
Class S3Content
- java.lang.Object
-
- org.craftercms.engine.store.s3.S3Content
-
- 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 Modifier and Type Field Description protected byte[]
content
The content of the file.protected long
lastModified
When the file was last modified.protected long
length
The length of the file.
-
Constructor Summary
Constructors Constructor Description S3Content(com.amazonaws.services.s3.model.S3Object s3Object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
long
getLastModified()
long
getLength()
-
-
-
Method Detail
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceorg.craftercms.core.service.Content
-
getLength
public long getLength()
- Specified by:
getLength
in interfaceorg.craftercms.core.service.Content
-
getInputStream
public InputStream getInputStream()
- Specified by:
getInputStream
in interfaceorg.craftercms.core.service.Content
-
-