Disk LRU Cache
==============
A cache that uses a bounded amount of space on a filesystem. Each cache entry
has a string key and a fixed number of values. Each key must match the regex
`[a-z0-9_-]{1,64}`. Values are byte sequences, accessible as streams or files.
Each value must be between `0` and `Integer.MAX_VALUE` bytes in length.
The cache stores its data in a directory on the filesystem. This directory must
be exclusive to the cache; the cache may delete or overwrite files from its
directory. It is an error for multiple processes to use the same cache
directory at the same time.
This cache limits the number of bytes that it will store on the filesystem.
When the number of stored bytes exceeds the limit, the cache will remove
entries in the background until the limit is satisfied. The limit is not
strict: the cache may temporarily exceed it while waiting for files to be
deleted. The limit does not include filesystem overhead or the cache journal so
space-sensitive applications should set a conservative limit.
Clients call `edit` to create or update the values of an entry. An entry may
have only one editor at one time; if a value is not available to be edited then
`edit` will return null.
* When an entry is being **created** it is necessary to supply a full set of
values; the empty value should be used as a placeholder if necessary.
* When an entry is being **edited**, it is not necessary to supply data for
every value; values default to their previous value.
Every `edit` call must be matched by a call to `Editor.commit` or
`Editor.abort`. Committing is atomic: a read observes the full set of values as
they were before or after the commit, but never a mix of values.
Clients call `get` to read a snapshot of an entry. The read will observe the
value at the time that `get` was called. Updates and removals after the call do
not impact ongoing reads.
This class is tolerant of some I/O errors. If files are missing from the
filesystem, the corresponding entries will be dropped from the cache. If an
error occurs while writing a cache value, the edit will fail silently. Callers
should handle other problems by catching `IOException` and responding
appropriately.
License
=======
Copyright 2012 Jake Wharton
Copyright 2011 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
没有合适的资源?快使用搜索试试~ 我知道了~
Glide是一个快速高效的图像加载库,用于专注于平滑滚动的开放和谐
共386个文件
java:309个
xml:16个
jpg:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 73 浏览量
2023-08-03
19:25:49
上传
评论
收藏 34.28MB ZIP 举报
温馨提示
Glide是一个快速高效的图像加载库,用于专注于平滑滚动的开放和谐。Glide 提供了一个易于使用的 API、一个高性能且可扩展的资源解码管道和自动资源池。滑行HMOS测试应用+移植代码项目 Glide 支持获取、解码和显示视频静止图像、图像和动画 GIF。Glide包含一个灵活的API,允许开发人员插入几乎任何网络堆栈。默认情况下,Glide使用基于HttpUrlConnection的自定义堆栈,但也包括插入Google的Volley项目或Square的OkHttp库的实用程序库。Glide的主要重点是使滚动任何类型的图像列表尽可能流畅和快速,但Glide对于几乎任何需要获取,调整大小和显示远程图像的情况也很有效。
资源推荐
资源详情
资源评论
收起资源包目录
Glide是一个快速高效的图像加载库,用于专注于平滑滚动的开放和谐 (386个子文件)
gradlew.bat 3KB
showgif.gif 25.37MB
happygirl.gif 396KB
music.gif 200KB
.gitignore 106B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
.gitignore 7B
build.gradle 834B
build.gradle 759B
build.gradle 634B
build.gradle 496B
build.gradle 495B
build.gradle 495B
build.gradle 348B
settings.gradle 116B
gradlew 6KB
BaseRequestOptions.java 50KB
RequestBuilder.java 37KB
DiskLruCache.java 30KB
Registry.java 29KB
SingleRequest.java 28KB
GlideAbilitySlice.java 27KB
StandardGifDecoder.java 26KB
RequestManager.java 24KB
TransformationUtils.java 24KB
Glide.java 24KB
Downsampler.java 23KB
DecodeJob.java 23KB
GlideBuilder.java 22KB
ResUtil.java 20KB
ViewTarget.java 19KB
Engine.java 19KB
DefaultImageHeaderParser.java 18KB
GlideExecutor.java 17KB
NeuQuant.java 16KB
EngineJob.java 15KB
GifHeaderParser.java 15KB
RecyclableBufferedInputStream.java 14KB
DraweeView.java 14KB
VideoDecoder.java 14KB
LruBitmapPool.java 13KB
AnimatedGifEncoder.java 12KB
DownsampleStrategy.java 12KB
GifDrawable.java 11KB
GifFrameLoader.java 11KB
MemorySizeCalculator.java 11KB
RequestOptions.java 10KB
Util.java 10KB
SourceGenerator.java 9KB
TransformationsAbilitySlice.java 9KB
LazyHeaders.java 9KB
GlideException.java 9KB
LZWEncoder.java 9KB
MultiModelLoaderFactory.java 8KB
HttpUrlFetcher.java 8KB
LruArrayPool.java 8KB
SizeConfigStrategy.java 8KB
RequestFutureTarget.java 8KB
RequestManagerRetriever.java 7KB
GifDecoder.java 7KB
DecodeHelper.java 7KB
CustomTransformatinsAbilitySlice.java 7KB
StrictLineReader.java 7KB
ByteBufferUtil.java 7KB
LruCache.java 6KB
Option.java 6KB
ByteBufferGifDecoder.java 6KB
GridAbilitySlice.java 6KB
ImageHeaderParserUtils.java 6KB
MultiModelLoader.java 6KB
NetListViewAbilitySlice.java 6KB
ActiveResources.java 6KB
BitmapTransformation.java 6KB
ThumbnailRequestCoordinator.java 6KB
DiskLruCacheWrapper.java 6KB
PixelMapScaleUtil.java 6KB
DiskCacheStrategy.java 5KB
SimpleTarget.java 5KB
RequestTracker.java 5KB
ModelLoaderRegistry.java 5KB
GlideMaxSizeAbilitySlice.java 5KB
DataUrlLoader.java 5KB
RootShapeElement.java 5KB
SecondAbility.java 5KB
BaseGlideUrlLoader.java 5KB
ResourceDecoderRegistry.java 5KB
TranscoderRegistry.java 5KB
ErrorRequestCoordinator.java 5KB
MainAbilitySlice.java 5KB
DecodePath.java 5KB
GlideUrl.java 4KB
ModelLoader.java 4KB
RequestListener.java 4KB
FactoryPools.java 4KB
StreamBitmapDecoder.java 4KB
InputStreamRewinder.java 4KB
GlideContext.java 4KB
共 386 条
- 1
- 2
- 3
- 4
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 7364
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功