Package org.cef.callback
Interface CefDownloadItem
-
public interface CefDownloadItemClass used to represent a download item.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetContentDisposition()Returns the content disposition.longgetCurrentSpeed()Returns a simple speed estimate in bytes/s.java.util.DategetEndTime()Returns the time that the download ended.java.lang.StringgetFullPath()Returns the full path to the downloaded or downloading file.intgetId()Returns the unique identifier for this download.java.lang.StringgetMimeType()Returns the mime type.intgetPercentComplete()Returns the rough percent complete or -1 if the receive total size is unknown.longgetReceivedBytes()Returns the number of received bytes.java.util.DategetStartTime()Returns the time that the download started.java.lang.StringgetSuggestedFileName()Returns the suggested file name.longgetTotalBytes()Returns the total number of bytes.java.lang.StringgetURL()Returns the URL.booleanisCanceled()Returns true if the download has been canceled or interrupted.booleanisComplete()Returns true if the download is complete.booleanisInProgress()Returns true if the download is in progress.booleanisValid()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.
-
-