public class DownloadDetector extends java.lang.Object implements java.util.Comparator<DownloadedFile>, java.io.Serializable
1. Response with "Content-Disposition" is most likely the right download. 2. Response with type "text/html", "text/plain", "text/css", "text/javascript", "application/json" are less likely the right download. 3. Latest file wins 4. The first file (alphabetically) wins
| Constructor and Description |
|---|
DownloadDetector() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(DownloadedFile file1,
DownloadedFile file2) |
public int compare(DownloadedFile file1, DownloadedFile file2)
compare in interface java.util.Comparator<DownloadedFile>