public abstract class MessageSnapshot
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageSnapshot.IWarnMessageSnapshot |
static class |
MessageSnapshot.NoFieldException |
static class |
MessageSnapshot.StartedMessageSnapshot |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
largeFile |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEtag() |
java.lang.String |
getFileName() |
int |
getId() |
long |
getLargeSofarBytes()
This method will be used when the downloading file is a large file.
|
long |
getLargeTotalBytes()
This method will be used when the downloading file is a large file.
|
int |
getRetryingTimes() |
int |
getSmallSofarBytes()
This method will be used when the downloading file isn't a large file.
|
int |
getSmallTotalBytes()
This method will be used when the downloading file isn't a large file.
|
byte |
getStatus() |
java.lang.Throwable |
getThrowable() |
boolean |
isLargeFile() |
boolean |
isResuming() |
boolean |
isReusedDownloadedFile() |
public int getId()
public java.lang.Throwable getThrowable()
public int getRetryingTimes()
public boolean isResuming()
true if the downloading is resuming from the breakpoint, otherwise the
downloading is from the beginning.public java.lang.String getEtag()
public long getLargeSofarBytes()
isLargeFile()public long getLargeTotalBytes()
isLargeFile()public int getSmallSofarBytes()
isLargeFile()public int getSmallTotalBytes()
isLargeFile()public boolean isReusedDownloadedFile()
true if the task isn't real started, and we find the target file is already
exist, so the task will receive the completed callback directly, false otherwise.public java.lang.String getFileName()
public boolean isLargeFile()
true if the length of the file is more than 1.99G, false otherwise.public byte getStatus()
FileDownloadStatus