Java Code Examples for com.danikula.videocache.ProxyCacheUtils#computeMD5()

The following examples show how to use com.danikula.videocache.ProxyCacheUtils#computeMD5() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Md5FileNameGenerator.java    From AndriodVideoCache with Apache License 2.0 4 votes vote down vote up
@Override
public String generate(String url) {
    String extension = getExtension(url);
    String name = ProxyCacheUtils.computeMD5(url);
    return TextUtils.isEmpty(extension) ? name : name + "." + extension;
}
 
Example 2
Source File: Md5FileNameGenerator.java    From DKVideoPlayer with Apache License 2.0 4 votes vote down vote up
@Override
public String generate(String url) {
    String extension = getExtension(url);
    String name = ProxyCacheUtils.computeMD5(url);
    return TextUtils.isEmpty(extension) ? name : name + "." + extension;
}
 
Example 3
Source File: Md5FileNameGenerator.java    From GSYVideoPlayer with Apache License 2.0 4 votes vote down vote up
@Override
public String generate(String url) {
    String extension = getExtension(url);
    String name = ProxyCacheUtils.computeMD5(url);
    return TextUtils.isEmpty(extension) ? name : name + "." + extension;
}
 
Example 4
Source File: Md5FileNameGenerator.java    From AndroidVideoCache with Apache License 2.0 4 votes vote down vote up
@Override
public String generate(String url) {
    String extension = getExtension(url);
    String name = ProxyCacheUtils.computeMD5(url);
    return TextUtils.isEmpty(extension) ? name : name + "." + extension;
}