Class 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 Detail

      • 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.
    • Constructor Detail

      • S3Content

        public S3Content​(com.amazonaws.services.s3.model.S3Object s3Object)
    • Method Detail

      • 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
      • getInputStream

        public InputStream getInputStream()
        Specified by:
        getInputStream in interface org.craftercms.core.service.Content