Package com.dnanexus

Class DXFile.Describe

    • Method Detail

      • getChunkSize

        public Long getChunkSize​(int index)
        Returns the size the specified file part in bytes.
        Parameters:
        index - part index that was provided to the file upload call
        Returns:
        size of the file part
        Throws:
        IllegalArgumentException - when the index supplied is not a file part
      • getFilePartsList

        public List<Integer> getFilePartsList()
        Returns a list of indices corresponding to parts of the file
        Returns:
        list of file part indices
      • getMD5

        public String getMD5​(int index)
        Returns the hexadecimal encoded value of MD5 message-digest of the specified file part.
        Parameters:
        index - part index that was provided to the file upload call
        Returns:
        file part md5 digested as a string
        Throws:
        IllegalArgumentException - when the index supplied is not a file part
      • getMediaType

        public String getMediaType()
        Returns the Internet Media Type of the file.
        Returns:
        Internet Media Type
      • getSize

        public long getSize()
        Returns the size of the file in bytes.
        Returns:
        size of file
      • getArchivalState

        public ArchivalState getArchivalState()
        Returns the archival state of the file.
        Returns:
        archival state of file