Skip navigation links
A B C D E F G H I L M N O P R S T U 

A

accept(File, long, int) - Method in class com.danikula.videocache.file.LruDiskUsage
 
accept(File, long, int) - Method in class com.danikula.videocache.file.TotalCountLruDiskUsage
 
accept(File, long, int) - Method in class com.danikula.videocache.file.TotalSizeLruDiskUsage
 
addHeaders(String) - Method in class com.danikula.videocache.headers.EmptyHeadersInjector
 
addHeaders(String) - Method in interface com.danikula.videocache.headers.HeaderInjector
Adds headers to server's requests for corresponding url.
append(byte[], int) - Method in class com.danikula.videocache.ByteArrayCache
 
append(byte[], int) - Method in interface com.danikula.videocache.Cache
 
append(byte[], int) - Method in class com.danikula.videocache.file.FileCache
 
available() - Method in class com.danikula.videocache.ByteArrayCache
 
available() - Method in interface com.danikula.videocache.Cache
 
available() - Method in class com.danikula.videocache.file.FileCache
 

B

build() - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Builds new instance of HttpProxyCacheServer.
Builder(Context) - Constructor for class com.danikula.videocache.HttpProxyCacheServer.Builder
 
ByteArrayCache - Class in com.danikula.videocache
Simple memory based Cache implementation.
ByteArrayCache() - Constructor for class com.danikula.videocache.ByteArrayCache
 
ByteArrayCache(byte[]) - Constructor for class com.danikula.videocache.ByteArrayCache
 
ByteArraySource - Class in com.danikula.videocache
Simple memory based Source implementation.
ByteArraySource(byte[]) - Constructor for class com.danikula.videocache.ByteArraySource
 

C

Cache - Interface in com.danikula.videocache
Cache for proxy.
cacheDirectory(File) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Overrides default cache folder to be used for caching files.
CacheListener - Interface in com.danikula.videocache
Listener for cache availability.
checkAllNotNull(Object...) - Static method in class com.danikula.videocache.Preconditions
 
checkNotNull(T) - Static method in class com.danikula.videocache.Preconditions
 
checkNotNull(T, String) - Static method in class com.danikula.videocache.Preconditions
 
close() - Method in class com.danikula.videocache.ByteArrayCache
 
close() - Method in class com.danikula.videocache.ByteArraySource
 
close() - Method in interface com.danikula.videocache.Cache
 
close() - Method in class com.danikula.videocache.file.FileCache
 
close() - Method in class com.danikula.videocache.HttpUrlSource
 
close() - Method in interface com.danikula.videocache.Source
Closes source and release resources.
com.danikula.videocache - package com.danikula.videocache
 
com.danikula.videocache.file - package com.danikula.videocache.file
 
com.danikula.videocache.headers - package com.danikula.videocache.headers
 
com.danikula.videocache.sourcestorage - package com.danikula.videocache.sourcestorage
 
complete() - Method in class com.danikula.videocache.ByteArrayCache
 
complete() - Method in interface com.danikula.videocache.Cache
 
complete() - Method in class com.danikula.videocache.file.FileCache
 
computeMD5(String) - Static method in class com.danikula.videocache.ProxyCacheUtils
 

D

DiskUsage - Interface in com.danikula.videocache.file
Declares how FileCache will use disc space.
diskUsage(DiskUsage) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Set custom DiskUsage logic for handling when to keep or clean cache.

E

EmptyHeadersInjector - Class in com.danikula.videocache.headers
Empty HeaderInjector implementation.
EmptyHeadersInjector() - Constructor for class com.danikula.videocache.headers.EmptyHeadersInjector
 

F

file - Variable in class com.danikula.videocache.file.FileCache
 
FileCache - Class in com.danikula.videocache.file
Cache that uses file for storing data.
FileCache(File) - Constructor for class com.danikula.videocache.file.FileCache
 
FileCache(File, DiskUsage) - Constructor for class com.danikula.videocache.file.FileCache
 
FileNameGenerator - Interface in com.danikula.videocache.file
Generator for files to be used for caching.
fileNameGenerator(FileNameGenerator) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Overrides default cache file name generator Md5FileNameGenerator .

G

generate(String) - Method in interface com.danikula.videocache.file.FileNameGenerator
 
generate(String) - Method in class com.danikula.videocache.file.Md5FileNameGenerator
 
get(String) - Method in class com.danikula.videocache.sourcestorage.NoSourceInfoStorage
 
get(String) - Method in interface com.danikula.videocache.sourcestorage.SourceInfoStorage
 
getFile() - Method in class com.danikula.videocache.file.FileCache
Returns file to be used fo caching.
getMime() - Method in class com.danikula.videocache.HttpUrlSource
 
getProxyUrl(String) - Method in class com.danikula.videocache.HttpProxyCacheServer
Returns url that wrap original url and should be used for client (MediaPlayer, ExoPlayer, etc).
getProxyUrl(String, boolean) - Method in class com.danikula.videocache.HttpProxyCacheServer
Returns url that wrap original url and should be used for client (MediaPlayer, ExoPlayer, etc).
getUrl() - Method in class com.danikula.videocache.HttpUrlSource
 

H

HeaderInjector - Interface in com.danikula.videocache.headers
Allows to add custom headers to server's requests.
headerInjector(HeaderInjector) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Add headers along the request to the server
HttpProxyCacheServer - Class in com.danikula.videocache
Simple lightweight proxy server with file caching support that handles HTTP requests.
HttpProxyCacheServer(Context) - Constructor for class com.danikula.videocache.HttpProxyCacheServer
 
HttpProxyCacheServer.Builder - Class in com.danikula.videocache
HttpUrlSource - Class in com.danikula.videocache
Source that uses http resource as source for ProxyCache.
HttpUrlSource(String) - Constructor for class com.danikula.videocache.HttpUrlSource
 
HttpUrlSource(String, SourceInfoStorage) - Constructor for class com.danikula.videocache.HttpUrlSource
 
HttpUrlSource(String, SourceInfoStorage, HeaderInjector) - Constructor for class com.danikula.videocache.HttpUrlSource
 
HttpUrlSource(HttpUrlSource) - Constructor for class com.danikula.videocache.HttpUrlSource
 

I

InterruptedProxyCacheException - Exception in com.danikula.videocache
Indicates interruption error in work of ProxyCache fired by user.
InterruptedProxyCacheException(String) - Constructor for exception com.danikula.videocache.InterruptedProxyCacheException
 
InterruptedProxyCacheException(String, Throwable) - Constructor for exception com.danikula.videocache.InterruptedProxyCacheException
 
InterruptedProxyCacheException(Throwable) - Constructor for exception com.danikula.videocache.InterruptedProxyCacheException
 
isCached(String) - Method in class com.danikula.videocache.HttpProxyCacheServer
Checks is cache contains fully cached file for particular url.
isCompleted() - Method in class com.danikula.videocache.ByteArrayCache
 
isCompleted() - Method in interface com.danikula.videocache.Cache
 
isCompleted() - Method in class com.danikula.videocache.file.FileCache
 

L

length() - Method in class com.danikula.videocache.ByteArraySource
 
length() - Method in class com.danikula.videocache.HttpUrlSource
 
length() - Method in interface com.danikula.videocache.Source
Returns length bytes or negative value if length is unknown.
length - Variable in class com.danikula.videocache.SourceInfo
 
LruDiskUsage - Class in com.danikula.videocache.file
DiskUsage that uses LRU (Least Recently Used) strategy to trim cache.
LruDiskUsage() - Constructor for class com.danikula.videocache.file.LruDiskUsage
 

M

maxCacheFilesCount(int) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Sets max cache files count.
maxCacheSize(long) - Method in class com.danikula.videocache.HttpProxyCacheServer.Builder
Sets max cache size in bytes.
Md5FileNameGenerator - Class in com.danikula.videocache.file
Implementation of FileNameGenerator that uses MD5 of url as file name
Md5FileNameGenerator() - Constructor for class com.danikula.videocache.file.Md5FileNameGenerator
 
mime - Variable in class com.danikula.videocache.SourceInfo
 

N

newEmptySourceInfoStorage() - Static method in class com.danikula.videocache.sourcestorage.SourceInfoStorageFactory
 
newSourceInfoStorage(Context) - Static method in class com.danikula.videocache.sourcestorage.SourceInfoStorageFactory
 
NoSourceInfoStorage - Class in com.danikula.videocache.sourcestorage
SourceInfoStorage that does nothing.
NoSourceInfoStorage() - Constructor for class com.danikula.videocache.sourcestorage.NoSourceInfoStorage
 

O

onCacheAvailable(File, String, int) - Method in interface com.danikula.videocache.CacheListener
 
open(long) - Method in class com.danikula.videocache.ByteArraySource
 
open(long) - Method in class com.danikula.videocache.HttpUrlSource
 
open(long) - Method in interface com.danikula.videocache.Source
Opens source.

P

Preconditions - Class in com.danikula.videocache
 
Preconditions() - Constructor for class com.danikula.videocache.Preconditions
 
ProxyCacheException - Exception in com.danikula.videocache
Indicates any error in work of ProxyCache.
ProxyCacheException(String) - Constructor for exception com.danikula.videocache.ProxyCacheException
 
ProxyCacheException(String, Throwable) - Constructor for exception com.danikula.videocache.ProxyCacheException
 
ProxyCacheException(Throwable) - Constructor for exception com.danikula.videocache.ProxyCacheException
 
ProxyCacheUtils - Class in com.danikula.videocache
Just simple utils.
ProxyCacheUtils() - Constructor for class com.danikula.videocache.ProxyCacheUtils
 
put(String, SourceInfo) - Method in class com.danikula.videocache.sourcestorage.NoSourceInfoStorage
 
put(String, SourceInfo) - Method in interface com.danikula.videocache.sourcestorage.SourceInfoStorage
 

R

read(byte[], long, int) - Method in class com.danikula.videocache.ByteArrayCache
 
read(byte[]) - Method in class com.danikula.videocache.ByteArraySource
 
read(byte[], long, int) - Method in interface com.danikula.videocache.Cache
 
read(byte[], long, int) - Method in class com.danikula.videocache.file.FileCache
 
read(byte[]) - Method in class com.danikula.videocache.HttpUrlSource
 
read(byte[]) - Method in interface com.danikula.videocache.Source
Read data to byte buffer from source with current offset.
registerCacheListener(CacheListener, String) - Method in class com.danikula.videocache.HttpProxyCacheServer
 
release() - Method in class com.danikula.videocache.sourcestorage.NoSourceInfoStorage
 
release() - Method in interface com.danikula.videocache.sourcestorage.SourceInfoStorage
 

S

shutdown() - Method in class com.danikula.videocache.HttpProxyCacheServer
 
Source - Interface in com.danikula.videocache
Source for proxy.
SourceInfo - Class in com.danikula.videocache
Stores source's info.
SourceInfo(String, long, String) - Constructor for class com.danikula.videocache.SourceInfo
 
SourceInfoStorage - Interface in com.danikula.videocache.sourcestorage
Storage for SourceInfo.
SourceInfoStorageFactory - Class in com.danikula.videocache.sourcestorage
Simple factory for SourceInfoStorage.
SourceInfoStorageFactory() - Constructor for class com.danikula.videocache.sourcestorage.SourceInfoStorageFactory
 

T

toString() - Method in class com.danikula.videocache.HttpUrlSource
 
toString() - Method in class com.danikula.videocache.SourceInfo
 
TotalCountLruDiskUsage - Class in com.danikula.videocache.file
DiskUsage that uses LRU (Least Recently Used) strategy and trims cache size to max files count if needed.
TotalCountLruDiskUsage(int) - Constructor for class com.danikula.videocache.file.TotalCountLruDiskUsage
 
TotalSizeLruDiskUsage - Class in com.danikula.videocache.file
DiskUsage that uses LRU (Least Recently Used) strategy and trims cache size to max size if needed.
TotalSizeLruDiskUsage(long) - Constructor for class com.danikula.videocache.file.TotalSizeLruDiskUsage
 
touch(File) - Method in interface com.danikula.videocache.file.DiskUsage
 
touch(File) - Method in class com.danikula.videocache.file.LruDiskUsage
 
touch(File) - Method in class com.danikula.videocache.file.UnlimitedDiskUsage
 

U

UnlimitedDiskUsage - Class in com.danikula.videocache.file
Unlimited version of DiskUsage.
UnlimitedDiskUsage() - Constructor for class com.danikula.videocache.file.UnlimitedDiskUsage
 
unregisterCacheListener(CacheListener, String) - Method in class com.danikula.videocache.HttpProxyCacheServer
 
unregisterCacheListener(CacheListener) - Method in class com.danikula.videocache.HttpProxyCacheServer
 
url - Variable in class com.danikula.videocache.SourceInfo
 
A B C D E F G H I L M N O P R S T U 
Skip navigation links