Class SwiftObjectImpl

    • Constructor Detail

      • SwiftObjectImpl

        public SwiftObjectImpl()
    • Method Detail

      • getETag

        public String getETag()
        Description copied from interface: SwiftObject
        The MD5 checksum value of the object content.
        Specified by:
        getETag in interface SwiftObject
        Returns:
        the MD5 checksum
      • getLastModified

        public Date getLastModified()
        Description copied from interface: SwiftObject
        The date and time when the object was last modified.
        Specified by:
        getLastModified in interface SwiftObject
        Returns:
        the last modified date
      • getSizeInBytes

        public long getSizeInBytes()
        Description copied from interface: SwiftObject
        The total number of bytes that are stored in Object Storage for the account
        Specified by:
        getSizeInBytes in interface SwiftObject
        Returns:
        total number of bytes
      • getName

        public String getName()
        Description copied from interface: SwiftObject
        The name of the object
        Specified by:
        getName in interface SwiftObject
        Returns:
        the name of the object
      • getDirectoryName

        public String getDirectoryName()
        Description copied from interface: SwiftObject
        The name of the directory
        Specified by:
        getDirectoryName in interface SwiftObject
        Returns:
        the name of the directory
      • getMimeType

        public String getMimeType()
        Description copied from interface: SwiftObject
        The content type of the object
        Specified by:
        getMimeType in interface SwiftObject
        Returns:
        the content type
      • isDirectory

        public boolean isDirectory()
        Description copied from interface: SwiftObject
        Determines if this object is a pseudo directory
        Specified by:
        isDirectory in interface SwiftObject
        Returns:
        true if this is a directory
      • setContainerName

        public void setContainerName​(String containerName)
      • getMetadata

        public Map<String,​String> getMetadata()
        Description copied from interface: SwiftObject
        Gets the object metadata (this is a lazy fetch)
        Specified by:
        getMetadata in interface SwiftObject
        Returns:
        the metadata for this object
      • download

        public DLPayload download()
        Description copied from interface: SwiftObject
        Retrieves the Payload for the data backing the current object
        Specified by:
        download in interface SwiftObject
        Returns:
        the download payload
      • download

        public DLPayload download​(DownloadOptions options)
        Description copied from interface: SwiftObject
        Retrieves the Payload for the data backing the current object
        Specified by:
        download in interface SwiftObject
        Parameters:
        options - the download options
        Returns:
        the download payload