Interface CefDownloadItem


  • public interface CefDownloadItem
    Class used to represent a download item.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getContentDisposition()
      Returns the content disposition.
      long getCurrentSpeed()
      Returns a simple speed estimate in bytes/s.
      java.util.Date getEndTime()
      Returns the time that the download ended.
      java.lang.String getFullPath()
      Returns the full path to the downloaded or downloading file.
      int getId()
      Returns the unique identifier for this download.
      java.lang.String getMimeType()
      Returns the mime type.
      int getPercentComplete()
      Returns the rough percent complete or -1 if the receive total size is unknown.
      long getReceivedBytes()
      Returns the number of received bytes.
      java.util.Date getStartTime()
      Returns the time that the download started.
      java.lang.String getSuggestedFileName()
      Returns the suggested file name.
      long getTotalBytes()
      Returns the total number of bytes.
      java.lang.String getURL()
      Returns the URL.
      boolean isCanceled()
      Returns true if the download has been canceled or interrupted.
      boolean isComplete()
      Returns true if the download is complete.
      boolean isInProgress()
      Returns true if the download is in progress.
      boolean isValid()
      Returns true if this object is valid.
    • Method Detail

      • isValid

        boolean isValid()
        Returns true if this object is valid. Do not call any other methods if this function returns false.
      • isInProgress

        boolean isInProgress()
        Returns true if the download is in progress.
      • isComplete

        boolean isComplete()
        Returns true if the download is complete.
      • isCanceled

        boolean isCanceled()
        Returns true if the download has been canceled or interrupted.
      • getCurrentSpeed

        long getCurrentSpeed()
        Returns a simple speed estimate in bytes/s.
      • getPercentComplete

        int getPercentComplete()
        Returns the rough percent complete or -1 if the receive total size is unknown.
      • getTotalBytes

        long getTotalBytes()
        Returns the total number of bytes.
      • getReceivedBytes

        long getReceivedBytes()
        Returns the number of received bytes.
      • getStartTime

        java.util.Date getStartTime()
        Returns the time that the download started.
      • getEndTime

        java.util.Date getEndTime()
        Returns the time that the download ended.
      • getFullPath

        java.lang.String getFullPath()
        Returns the full path to the downloaded or downloading file.
      • getId

        int getId()
        Returns the unique identifier for this download.
      • getURL

        java.lang.String getURL()
        Returns the URL.
      • getSuggestedFileName

        java.lang.String getSuggestedFileName()
        Returns the suggested file name.
      • getContentDisposition

        java.lang.String getContentDisposition()
        Returns the content disposition.
      • getMimeType

        java.lang.String getMimeType()
        Returns the mime type.