jautil.avatar
Class BaseAccess

java.lang.Object
  extended by jautil.avatar.BaseAccess
All Implemented Interfaces:
AvatarAccess
Direct Known Subclasses:
CacheableAccess, ClassPathAccess, DirectFilesAccess

public abstract class BaseAccess
extends java.lang.Object
implements AvatarAccess

Abstract base class for an implementation of the AvatarAccess inteface supported by an AvatarData instance.


Constructor Summary
BaseAccess()
           
 
Method Summary
 byte[] asdData()
          Returns the content of the avatar's ASD XML file (asd.xml).
 java.io.InputStream avatarDefStream()
          Returns an input stream for the data in the ARP avatar definition file for this avatar (avatardef.jarp or avatardef.jarp).
 java.lang.String avatarDefURL()
          Returns the URL for the ARP avatar definition file for this avatar (avatardef.jarp or avatardef.jarp).
 java.lang.String avatarName()
          Returns the avatar name.
 java.lang.String baseURL()
          Returns the base URL for the avatar data.
 byte[] configData()
          Returns the content of the avatar's animgen configuration data XML file (config.xml).
 byte[] nonmanualsData()
          Returns the content of the avatar's nonmanuals XML file (nonmanuals.xml).
 void terminateAccess()
          Performs any necessary termination actions for this avatar access, for example releasing any temporary files or other resources associated with it.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseAccess

public BaseAccess()
Method Detail

avatarName

public java.lang.String avatarName()
Returns the avatar name.

Specified by:
avatarName in interface AvatarAccess

baseURL

public java.lang.String baseURL()
Returns the base URL for the avatar data.

Specified by:
baseURL in interface AvatarAccess

asdData

public byte[] asdData()
Returns the content of the avatar's ASD XML file (asd.xml).

Specified by:
asdData in interface AvatarAccess

configData

public byte[] configData()
Returns the content of the avatar's animgen configuration data XML file (config.xml).

Specified by:
configData in interface AvatarAccess

nonmanualsData

public byte[] nonmanualsData()
Returns the content of the avatar's nonmanuals XML file (nonmanuals.xml).

Specified by:
nonmanualsData in interface AvatarAccess

avatarDefStream

public java.io.InputStream avatarDefStream()
Returns an input stream for the data in the ARP avatar definition file for this avatar (avatardef.jarp or avatardef.jarp).

Specified by:
avatarDefStream in interface AvatarAccess

avatarDefURL

public java.lang.String avatarDefURL()
Returns the URL for the ARP avatar definition file for this avatar (avatardef.jarp or avatardef.jarp).

Specified by:
avatarDefURL in interface AvatarAccess

terminateAccess

public void terminateAccess()
Performs any necessary termination actions for this avatar access, for example releasing any temporary files or other resources associated with it.

Specified by:
terminateAccess in interface AvatarAccess