Package com.pspdfkit.document.providers
Object UrlDataProvider.Companion
-
- All Implemented Interfaces:
public class UrlDataProvider.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static UrlDataProvider.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final File
getCacheDirectory()
Returns the cache directory for UrlDataProvider. final String
cacheFileNameFromUrl(URL url)
creates a unique cache file name for the given URL. final Unit
deleteCachedFileForUrl(URL url)
Deletes the cached file for the given URL if it exists. final Unit
deleteCachedFiles()
Deletes all downloaded files from the cache. final String
fileNameFromUrl(URL url)
Extracts the file name from the given URL. -
-
Method Detail
-
getCacheDirectory
final File getCacheDirectory()
Returns the cache directory for UrlDataProvider.
-
cacheFileNameFromUrl
final String cacheFileNameFromUrl(URL url)
creates a unique cache file name for the given URL.
-
deleteCachedFileForUrl
final Unit deleteCachedFileForUrl(URL url)
Deletes the cached file for the given URL if it exists.
-
deleteCachedFiles
final Unit deleteCachedFiles()
Deletes all downloaded files from the cache.
-
fileNameFromUrl
final String fileNameFromUrl(URL url)
Extracts the file name from the given URL.
-
-
-
-