IT. Expert System.

Android Reference

CacheManager


android.webkit

Class CacheManager


  • Deprecated.
    Access to the HTTP cache will be removed in a future release.

    @Deprecated
    public final class CacheManager
    extends Object
    Manages the HTTP cache used by an application's WebView instances.
    • Constructor Detail

      • CacheManager

        public CacheManager()
        Deprecated.
    • Method Detail

      • getCacheFileBaseDir

        @Deprecated
        public static File getCacheFileBaseDir()
        Deprecated. Access to the HTTP cache will be removed in a future release.
        Gets the base directory in which the files used to store the contents of cache entries are placed. See CacheManager.CacheResult.getLocalPath().
        Returns:
        the base directory of the cache
      • cacheDisabled

        @Deprecated
        public static boolean cacheDisabled()
        Deprecated. Access to the HTTP cache will be removed in a future release.
        Gets whether the HTTP cache is disabled.
        Returns:
        true if the HTTP cache is disabled
      • startCacheTransaction

        @Deprecated
        public static boolean startCacheTransaction()
        Deprecated. This method no longer has any effect and always returns false.
        Starts a cache transaction. Returns true if this is the only running transaction. Otherwise, this transaction is nested inside currently running transactions and false is returned.
        Returns:
        true if this is the only running transaction
      • endCacheTransaction

        @Deprecated
        public static boolean endCacheTransaction()
        Deprecated. This method no longer has any effect and always returns false.
        Ends the innermost cache transaction and returns whether this was the only running transaction.
        Returns:
        true if this was the only running transaction
      • getCacheFile

        @Deprecated
        public static CacheManager.CacheResult getCacheFile(String url,
                                                       Map<String,String> headers)
        Deprecated. Access to the HTTP cache will be removed in a future release.
        Gets the cache entry for the specified URL, or null if none is found. If a non-null value is provided for the HTTP headers map, and the cache entry needs validation, appropriate headers will be added to the map. The input stream of the CacheEntry object should be closed by the caller when access to the underlying file is no longer required.
        Parameters:
        url - the URL for which a cache entry is requested
        headers - a map from HTTP header name to value, to be populated for the returned cache entry
        Returns:
        the cache entry for the specified URL
      • saveCacheFile

        @Deprecated
        public static void saveCacheFile(String url,
                                    CacheManager.CacheResult cacheResult)
        Deprecated. Access to the HTTP cache will be removed in a future release.
        Adds a cache entry to the HTTP cache for the specicifed URL. Also closes the cache entry's output stream.
        Parameters:
        url - the URL for which the cache entry should be added
        cacheResult - the cache entry to add


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 266 / 158861539. Delta: 0.02758 с