jautil.avatar
Class AvatarDefinitionForView

java.lang.Object
  extended by jautil.avatar.AvatarDefinitionForView
All Implemented Interfaces:
AvatarDefinitionAccess

public class AvatarDefinitionForView
extends java.lang.Object
implements AvatarDefinitionAccess

An AvatarDefinitionAccess implementation supported by an AvatarAccess, suitable for use by a View.


Constructor Summary
AvatarDefinitionForView(AvatarAccess avaccess)
          Constructs a new ARP avatar definition access object, using the given AvatarAccess, which must not be null.
AvatarDefinitionForView(java.lang.String avname)
          Constructs a new ARP avatar definition access object for the avatar with the given name, but with a null access object.
 
Method Summary
 java.io.InputStream asNewStream()
          Returns an input stream for this ARP avatar definition, or null if the definition is unavailable.
 java.lang.String asURL()
          Returns the URL for this ARP avatar definition, or null if the definition is unavailable.
 java.lang.String avatarName()
          Returns the name of the avatar whose definition is provided here.
 boolean isAvailable()
          Indicates whether the data for this avatar definition is available.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvatarDefinitionForView

public AvatarDefinitionForView(AvatarAccess avaccess)
Constructs a new ARP avatar definition access object, using the given AvatarAccess, which must not be null.


AvatarDefinitionForView

public AvatarDefinitionForView(java.lang.String avname)
Constructs a new ARP avatar definition access object for the avatar with the given name, but with a null access object.

Method Detail

avatarName

public java.lang.String avatarName()
Returns the name of the avatar whose definition is provided here.

Specified by:
avatarName in interface AvatarDefinitionAccess

isAvailable

public boolean isAvailable()
Indicates whether the data for this avatar definition is available.

Specified by:
isAvailable in interface AvatarDefinitionAccess

asNewStream

public java.io.InputStream asNewStream()
Returns an input stream for this ARP avatar definition, or null if the definition is unavailable.

Specified by:
asNewStream in interface AvatarDefinitionAccess

asURL

public java.lang.String asURL()
Returns the URL for this ARP avatar definition, or null if the definition is unavailable.

Specified by:
asURL in interface AvatarDefinitionAccess