1 package com.bumptech.glide;
2 
3 import com.bumptech.glide.request.FutureTarget;
4 import com.bumptech.glide.request.target.Target;
5 
6 import java.io.File;
7 
8 interface DownloadOptions {
9 
10     /**
11      * Loads the original unmodified data into the cache and calls the given Target with the cache File.
12      *
13      * @param target The Target that will receive the cache File when the load completes
14      * @param <Y> The type of Target.
15      * @return The given Target.
16      */
downloadOnly(Y target)17     <Y extends Target<File>> Y downloadOnly(Y target);
18 
19 
20     /**
21      * Loads the original unmodified data into the cache and returns a {@link java.util.concurrent.Future} that can be
22      * used to retrieve the cache File containing the data.
23      *
24      * @param width The width in pixels to use to fetch the data.
25      * @param height The height in pixels to use to fetch the data.
26      * @return A {@link java.util.concurrent.Future} that can be used to retrieve the cache File containing the data.
27      */
downloadOnly(int width, int height)28     FutureTarget<File> downloadOnly(int width, int height);
29 }
30