public interface CachedExternalResource
ExternalResource. There is
an adapter that can represent a cached resource as an external resource as CachedExternalResourceAdapter.| Modifier and Type | Method and Description |
|---|---|
long |
getCachedAt()
The timestamp of when this cache entry was created.
|
File |
getCachedFile()
The cached version of the external resource as a local file.
|
long |
getContentLength()
Always the actual content length of the cached file, not the external source.
|
Date |
getExternalLastModified()
Null safe shortcut for getExternalResourceMetaData().getLastModified();
|
long |
getExternalLastModifiedAsTimestamp()
Null safe shortcut for getExternalResourceMetaData().getLastModified() as a timestamp.
|
ExternalResourceMetaData |
getExternalResourceMetaData() |
HashValue |
getSha1()
Always the actual checksum of the cached file, not the external source.
|
boolean |
isMissing()
True if this cache entry represents that the resource does not exist.
|
boolean isMissing()
@Nullable File getCachedFile()
isMissing().long getCachedAt()
long getContentLength()
HashValue getSha1()
@Nullable ExternalResourceMetaData getExternalResourceMetaData()
Date getExternalLastModified()
long getExternalLastModifiedAsTimestamp()
Copyright © 2013. All rights reserved