public class CacheableAccess extends BaseAccess implements AvatarAccess
AvatarAccess interface for a "cacheable"
collection of avatar data files, that is, one held in a JAR as for a
ClassPathAccess, although in this case the JAR is not
on the JVM class path. In the present case the JAR is downloaded
and cached locally on first use; this cached copy is then accessed
dynamically to obtain a base URL (jar:...) giving
access to the avatar definition files following the same conventions
as for a ClassPathAccess.
This class is a concrete subclass of BaseAccess whose
AvatarData is populated via the cached copy of the JAR in the
manned just outlined.| Constructor and Description |
|---|
CacheableAccess(java.lang.String avname,
java.lang.String avurl,
AvatarsCacheHandler ach)
Constructs a new cacheable avatar access instance for the avatar
with the given name, whose source URL is obtained from the given
JAOptions set. |
| Modifier and Type | Method and Description |
|---|---|
void |
terminateAccess()
Terminates this cacheable avatar access (currently a no-op).
|
asdData, avatarDefStream, avatarDefURL, avatarName, baseURL, configData, nonmanualsDataequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasdData, avatarDefStream, avatarDefURL, avatarName, baseURL, configData, nonmanualsDatapublic CacheableAccess(java.lang.String avname,
java.lang.String avurl,
AvatarsCacheHandler ach)
throws AvatarDataException
JAOptions set.AvatarDataExceptionpublic void terminateAccess()
terminateAccess in interface AvatarAccessterminateAccess in class BaseAccess