Package slash.navigation.download
Class Download
java.lang.Object
slash.navigation.download.Download
A file to download
- Author:
- Christian Pesch
-
Constructor Summary
ConstructorsConstructorDescriptionDownload(String description, String url, Action action, FileAndChecksum file, List<FileAndChecksum> fragments) Download(String description, String url, Action action, FileAndChecksum file, List<FileAndChecksum> fragments, String eTag, State state, File tempFile) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe Content-Length the last HTTP response announced, before it is folded into anyChecksum; lets listeners tell a completely transferred file from a truncated one.The Last-Modified the last HTTP response announced, in epoch milliseconds; lets listeners compare the written file against the build the server announced.getETag()getFile()longgetSize()getState()getUrl()inthashCode()voidvoidsetAnnouncedContentLength(Long announcedContentLength) voidsetAnnouncedLastModified(Long announcedLastModified) voidvoidsetExpectedBytes(Long expectedBytes) voidsetFile(FileAndChecksum file) voidsetFragments(List<FileAndChecksum> fragments) voidsetProcessedBytes(long processedBytes) voidtoString()
-
Constructor Details
-
Method Details
-
getDescription
-
getUrl
-
getAction
-
getFile
-
getFragments
-
setFragments
-
getETag
-
setETag
-
getState
-
getTempFile
-
getPercentage
-
getProcessedBytes
public long getProcessedBytes() -
setProcessedBytes
public void setProcessedBytes(long processedBytes) -
getExpectedBytes
-
setExpectedBytes
-
getAnnouncedContentLength
The Content-Length the last HTTP response announced, before it is folded into anyChecksum; lets listeners tell a completely transferred file from a truncated one. -
setAnnouncedContentLength
-
getAnnouncedLastModified
The Last-Modified the last HTTP response announced, in epoch milliseconds; lets listeners compare the written file against the build the server announced. -
setAnnouncedLastModified
-
getChecksum
-
getSize
-
getLastModified
-
toString
-
equals
-
hashCode
public int hashCode()
-