public class CachingFile
extends java.lang.Object
| Constructor and Description |
|---|
CachingFile(java.io.File localCache,
java.net.URL remoteSource)
Construct a caching file with the local file and
the remote source.
|
CachingFile(java.io.File localCache,
java.net.URL remoteSource,
long expirySeconds)
Construct a caching file with the local file and
the remote source.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getContent() |
public CachingFile(java.io.File localCache,
java.net.URL remoteSource)
localCache - Where to keep the cacheremoteSource - Where to get the contentpublic CachingFile(java.io.File localCache,
java.net.URL remoteSource,
long expirySeconds)
localCache - Where to keep the cacheremoteSource - Where to get the contentexpirySeconds - The number of seconds between cache update checks.