am 42c2ac00: Merge "Fix for broken docs build."
* commit '42c2ac00e6e6e8fcfd15dcfbc6d70eabc709d904': Fix for broken docs build.
This commit is contained in:
@@ -33,15 +33,16 @@ import java.util.Map;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Caches HTTP and HTTPS responses to the filesystem so they may be reused,
|
* Caches HTTP and HTTPS responses to the filesystem so they may be reused,
|
||||||
* saving time and bandwidth. This class supports {@link HttpURLConnection} and
|
* saving time and bandwidth. This class supports {@link
|
||||||
* {@link HttpsURLConnection}; there is no platform-provided cache for {@link
|
* java.net.HttpURLConnection} and {@link javax.net.ssl.HttpsURLConnection};
|
||||||
* DefaultHttpClient} or {@link AndroidHttpClient}.
|
* there is no platform-provided cache for {@link
|
||||||
|
* org.apache.http.impl.client.DefaultHttpClient} or {@link AndroidHttpClient}.
|
||||||
*
|
*
|
||||||
* <h3>Installing an HTTP response cache</h3>
|
* <h3>Installing an HTTP response cache</h3>
|
||||||
* Enable caching of all of your application's HTTP requests by installing the
|
* Enable caching of all of your application's HTTP requests by installing the
|
||||||
* cache at application startup. For example, this code installs a 10 MiB cache
|
* cache at application startup. For example, this code installs a 10 MiB cache
|
||||||
* in the {@link android.content.Context#getCacheDir() application-specific cache directory} of
|
* in the {@link android.content.Context#getCacheDir() application-specific
|
||||||
* the filesystem}: <pre> {@code
|
* cache directory} of the filesystem}: <pre> {@code
|
||||||
* protected void onCreate(Bundle savedInstanceState) {
|
* protected void onCreate(Bundle savedInstanceState) {
|
||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
@@ -73,10 +74,10 @@ import java.util.Map;
|
|||||||
* contain private data.</strong> Although it often has more free space,
|
* contain private data.</strong> Although it often has more free space,
|
||||||
* external storage is optional and—even if available—can disappear
|
* external storage is optional and—even if available—can disappear
|
||||||
* during use. Retrieve the external cache directory using {@link
|
* during use. Retrieve the external cache directory using {@link
|
||||||
* Context#getExternalCacheDir()}. If this method returns null, your application
|
* android.content.Context#getExternalCacheDir()}. If this method returns null,
|
||||||
* should fall back to either not caching or caching on non-external storage. If
|
* your application should fall back to either not caching or caching on
|
||||||
* the external storage is removed during use, the cache hit rate will drop to
|
* non-external storage. If the external storage is removed during use, the
|
||||||
* zero and ongoing cache reads will fail.
|
* cache hit rate will drop to zero and ongoing cache reads will fail.
|
||||||
*
|
*
|
||||||
* <p>Flushing the cache forces its data to the filesystem. This ensures that
|
* <p>Flushing the cache forces its data to the filesystem. This ensures that
|
||||||
* all responses written to the cache will be readable the next time the
|
* all responses written to the cache will be readable the next time the
|
||||||
|
|||||||
Reference in New Issue
Block a user