Java 类com.bumptech.glide.load.engine.cache.StringKey 实例源码

项目:saarang-iosched    文件:VolleyDiskCacheWrapper.java   
@Override
public void put(final String key, final Entry entry) {
    diskCache.put(new StringKey(key), new DiskCache.Writer() {
        @Override
        public boolean write(OutputStream os) {
            CacheHeader header = new CacheHeader(key, entry);
            boolean success = header.writeHeader(os);
            if (success) {
                try {
                    os.write(entry.data);
                } catch (IOException e) {
                    success = false;
                    if (Log.isLoggable(TAG, Log.DEBUG)) {
                        Log.d(TAG, "Unable to write data", e);
                    }
                }
            }
            return success;
        }
    });
}
项目:AppDevFestSudeste2015    文件:VolleyDiskCacheWrapper.java   
@Override
public void put(final String key, final Entry entry) {
    diskCache.put(new StringKey(key), new DiskCache.Writer() {
        @Override
        public boolean write(OutputStream os) {
            CacheHeader header = new CacheHeader(key, entry);
            boolean success = header.writeHeader(os);
            if (success) {
                try {
                    os.write(entry.data);
                } catch (IOException e) {
                    success = false;
                    if (Log.isLoggable(TAG, Log.DEBUG)) {
                        Log.d(TAG, "Unable to write data", e);
                    }
                }
            }
            return success;
        }
    });
}
项目:devfestnorte-app    文件:VolleyDiskCacheWrapper.java   
@Override
public void put(final String key, final Entry entry) {
    diskCache.put(new StringKey(key), new DiskCache.Writer() {
        @Override
        public boolean write(OutputStream os) {
            CacheHeader header = new CacheHeader(key, entry);
            boolean success = header.writeHeader(os);
            if (success) {
                try {
                    os.write(entry.data);
                } catch (IOException e) {
                    success = false;
                    if (Log.isLoggable(TAG, Log.DEBUG)) {
                        Log.d(TAG, "Unable to write data", e);
                    }
                }
            }
            return success;
        }
    });
}
项目:saarang-iosched    文件:VolleyDiskCacheWrapper.java   
@Override
public void put(final String key, final Entry entry) {
    diskCache.put(new StringKey(key), new DiskCache.Writer() {
        @Override
        public boolean write(OutputStream os) {
            CacheHeader header = new CacheHeader(key, entry);
            boolean success = header.writeHeader(os);
            if (success) {
                try {
                    os.write(entry.data);
                } catch (IOException e) {
                    success = false;
                    if (Log.isLoggable(TAG, Log.DEBUG)) {
                        Log.d(TAG, "Unable to write data", e);
                    }
                }
            }
            return success;
        }
    });
}
项目:saarang-iosched    文件:VolleyDiskCacheWrapper.java   
@Override
public void remove(String key) {
    diskCache.delete(new StringKey(key));
}
项目:AppDevFestSudeste2015    文件:VolleyDiskCacheWrapper.java   
@Override
public void remove(String key) {
    diskCache.delete(new StringKey(key));
}
项目:devfestnorte-app    文件:VolleyDiskCacheWrapper.java   
@Override
public void remove(String key) {
    diskCache.delete(new StringKey(key));
}
项目:saarang-iosched    文件:VolleyDiskCacheWrapper.java   
@Override
public void remove(String key) {
    diskCache.delete(new StringKey(key));
}