jautil.avatar
Class CacheableAccess

java.lang.Object
  extended by jautil.avatar.BaseAccess
      extended by jautil.avatar.CacheableAccess
All Implemented Interfaces:
AvatarAccess

public class CacheableAccess
extends BaseAccess
implements AvatarAccess

Implements the 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 Summary
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.
 
Method Summary
 void terminateAccess()
          Terminates this cacheable avatar access (currently a no-op).
 
Methods inherited from class jautil.avatar.BaseAccess
asdData, avatarDefStream, avatarDefURL, avatarName, baseURL, configData, nonmanualsData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jautil.avatar.AvatarAccess
asdData, avatarDefStream, avatarDefURL, avatarName, baseURL, configData, nonmanualsData
 

Constructor Detail

CacheableAccess

public CacheableAccess(java.lang.String avname,
                       java.lang.String avurl,
                       AvatarsCacheHandler ach)
                throws AvatarDataException
Constructs a new cacheable avatar access instance for the avatar with the given name, whose source URL is obtained from the given JAOptions set.

Throws:
AvatarDataException
Method Detail

terminateAccess

public void terminateAccess()
Terminates this cacheable avatar access (currently a no-op).

Specified by:
terminateAccess in interface AvatarAccess
Overrides:
terminateAccess in class BaseAccess